thatmaxplayle / MaxBot

The Discord Bot written by a guy called Max. It basically does everything 🤩
https://maxplayle04.github.io/MaxBot
0 stars 0 forks source link

Make it "compulsory" for Server Admin's to set the values for general_channel_id and console_channel_id and admin_chat_id #12

Closed thatmaxplayle closed 4 years ago

thatmaxplayle commented 4 years ago

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)

VortexChelmsford commented 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)

thatmaxplayle commented 4 years ago

Introduced in update 1.0.8 beta. Partial changelog: image

Thank you for reporting this issue.