You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ボットをインストールしようとしたのですが、「[ERROR] [JDA]: One of the EventListeners had an uncaught exception
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22 」というエラーが出て、何が問題なのかわかりません。
以下はエラーの画像である:
これは、私がボットを更新するために使用しているスクリプトです:
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" ];thenecho"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
何か間違っていたら教えてください。
The text was updated successfully, but these errors were encountered:
こんにちは、私は日本語がわからないので、グーグル翻訳を使っています。
ボットをインストールしようとしたのですが、「[ERROR] [JDA]: One of the EventListeners had an uncaught exception
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22 」というエラーが出て、何が問題なのかわかりません。
以下はエラーの画像である:
これは、私がボットを更新するために使用しているスクリプトです:
これが私の設定ファイルだ:
何か間違っていたら教えてください。
The text was updated successfully, but these errors were encountered: