Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ボット起動時の奇妙なエラー #55

Open
veryredpp opened this issue Nov 24, 2024 · 0 comments
Open

ボット起動時の奇妙なエラー #55

veryredpp opened this issue Nov 24, 2024 · 0 comments

Comments

@veryredpp
Copy link

こんにちは、私は日本語がわからないので、グーグル翻訳を使っています。

ボットをインストールしようとしたのですが、「[ERROR] [JDA]: One of the EventListeners had an uncaught exception
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22 」というエラーが出て、何が問題なのかわかりません。

以下はエラーの画像である:
image

これは、私がボットを更新するために使用しているスクリプトです:

latest_release_url="https://api.github.com/repos/Cosgy-Dev/JMusicBot-JP/releases/latest"
download_url=$(curl -s "$latest_release_url" | grep browser_download_url | grep ".jar" | cut -d '"' -f 4)

file_name=$(basename "$download_url")

wget -nc "$download_url"

if [ -e "lockfile" ]; then
    echo "Another Instance of the Bot is running."
    echo "(Take the L)"
else
   touch lockfile
   java -Dnogui=true -jar "$file_name"
   rm lockfile
fi

これが私の設定ファイルだ:

/////////////////////////////////////////////////////////
// Config for the JMusicBot                            //
/////////////////////////////////////////////////////////
// Any line starting with // is ignored                //
// You MUST set the token and owner                    //
// All other items have defaults if you don't set them //
// Open in Notepad++ for best results                  //
/////////////////////////////////////////////////////////
youtubeoauth2 = true

token = [TOKEN]

owner = [MY_ID]

prefix = "@mention"

game = "DEFAULT"

status = ONLINE

songinstatus=false

altprefix = "NONE"

success = "🎶"
warning = "💡"
error = "🚫"
loading = "⌚"
searching = "🔎"

help = help

npimages = false

stayinchannel = false

maxtime = 0

skipratio = 0.55

alonetimeuntilstop = 0

playlistsfolder = "Playlists"

updatealerts=true

lyrics.default = "A-Z Lyrics"

aliases {
  // General commands
  settings = [ status ]

  // Music commands
  lyrics = []
  nowplaying = [ np, current ]
  play = []
  playlists = [ pls ]
  queue = [ list ]
  remove = [ delete ]
  scsearch = []
  search = [ ytsearch ]
  shuffle = []
  skip = [ voteskip ]

  // Admin commands
  prefix = [ setprefix ]
  setdj = []
  setskip = [ setskippercent, skippercent, setskipratio ]
  settc = []
  setvc = []

  // DJ Commands
  forceremove = [ forcedelete, modremove, moddelete, modelete ]
  forceskip = [ modskip ]
  movetrack = [ move ]
  pause = []
  playnext = []
  queuetype = []
  repeat = []
  skipto = [ jumpto ]
  stop = [ leave ]
  volume = [ vol ]
}

transforms = {}

eval=false

何か間違っていたら教えてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant