Closed thatmaxplayle closed 4 years ago
This can be achieved using the Vortex DiscordLibraries lib using function com.vortex.DiscordLibraries.botRules.configMustNotBeNull(object jsonObj, Newtonsoft.Json.Linq.JToken token)
Introduced in update 1.0.8 beta. Partial changelog:
Thank you for reporting this issue.
MaxBot should show a warning that the general_channel_id, console_channel_id and admin_chat_id have not yet been set for that server, and that the owner/admin/authorised personnel should set it as soon as possible using
mmbot/change-config [appropriate]_channel_id
MaxBot should show a warning in the server each time a message is received by MaxBot in that server. This will be annoying enough for the admins/owners to set a channel ID using
mmbot/change-config
.Doing this within CommandHandler.cs will make it easier to process on a large scale. Do it under CommandHandler.cs/MessageReceivedAsync (if config shows that channel hasn't been set, send a chat message)