Closed Boy0000 closed 2 years ago
I will need to see your server startup log
BUMP! @anvorgesa I'm also facing this issue. This happens when spicord loads before banannouncer and while looking for addons it cant find one. In the log provided by @Boy0000 you can see from line 32-39
[18:39:06] [Velocity Async Event Executor - #0/INFO]: Registered addon 'Server Information' (spicord::info) by Sheidy [18:39:06] [Velocity Async Event Executor - #0/INFO]: Registered addon 'Plugin List' (spicord::plugins) by Sheidy [18:39:06] [Velocity Async Event Executor - #0/INFO]: Registered addon 'Player List' (spicord::players) by Sheidy [18:39:06] [Velocity Async Event Executor - #0/INFO]: Starting the bots... [18:39:06] [Velocity Async Event Executor - #0/INFO]: Starting bot 'default'. [18:39:06] [Velocity Async Event Executor - #0/INFO]: Conducting START... [18:39:06] [Velocity Async Event Executor - #0/INFO]: LibertyBansTemporaryPool-HyperSQL - Starting... [18:39:06] [ForkJoinPool.commonPool-worker-1/WARN]: The addon with the id 'ban_announcer' was not found.
but after a while in line 55 and 56 you can see its registered
[18:39:08] [Velocity Async Event Executor - #0/INFO]: [AutoDetect] Using LibertyBans as the punishment manager. [18:39:08] [Velocity Async Event Executor - #0/INFO]: Registered addon 'BanAnnouncer' (ban_announcer) by Sheidy
after unable to detect the first time it stops working and even though after a while the addon gets registers, it doesn't work.
because "this.bot" is null
in your error. Bot token isn't set properly in Spicord is what it's saying. Double-check to make sure its the right token (You must have this saved and written down because if you try to display it in discord developer apps it will just regenerate it and create a new token which you then will need to update everywhere you use it.)
@Pabsb I have 3 paper instances running the identical config file as the proxy and they are working fine. I can assure you that my error has nothing to do with me using the wrong token
Hmm yeah it had no issues until we updated Velocity around beginning of April. No configs should have been changed but, i suppose ill remake the bot
@Boy0000 sorry for my inactivity, I have been through a lot irl and have forgot to check github.
@Turjoy9 you are right, but the reason BanAnnouncer is registered too late is because it depends on LibertyBans and so BanAnnouncer will wait until LibertyBans loads, but at that time Spicord has already loaded the bot and addons. This issue is present since the first releases of B.A. and can also occur on Spigot and BungeeCord if the punishment plugin that B.A. depends on takes too long to load.
@Pabsb it actually has nothing to do with the bot token, BanAnnouncer thinks it was loaded by Spicord at the right time so it expect to have the "bot" variable actually set, but Spicord never loaded it and thus never set the "bot" variable.
I have made an Spicord & B.A. build almost 20 days ago that attempts to fix the issues described here but they are only present on the Discord Support server. I will make some minimal changes to the builds and upload them on this GitHub issue in my next message.
can confirm the zip above fixes it 👍
Thanks for the confirmation, I hope you enjoy the plugin :blush:
Not entirely sure why, but after we updated Velocity to update servers to 1.18.2,, the punishments were stopped from sending into the channel. Asked LibertyBans dev and said it sounded like a banannouncer issue.
Didnt change any configs or anything and using Spicord 4.2.1 and BA 2.6.0 Not sure if theres a known issue or something but yeah
Error:
Config: