mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
.modules commanad now has a medusa module description
This commit is contained in:
@@ -22,6 +22,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
|
||||
|
||||
- Fixed `.deletexp` command
|
||||
- `.give` command should send DMs again
|
||||
- `.modules` commanad now has a medusa module description
|
||||
|
||||
## [4.1.2] - 16.04.2022
|
||||
|
||||
|
@@ -129,6 +129,8 @@ public partial class Help : NadekoModule<HelpService>
|
||||
return strs.module_description_permissions;
|
||||
case "xp":
|
||||
return strs.module_description_xp;
|
||||
case "medusa":
|
||||
return strs.module_description_medusa;
|
||||
default:
|
||||
return strs.module_description_missing;
|
||||
}
|
||||
|
@@ -159,11 +159,14 @@ public static class MessageChannelExtensions
|
||||
{
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
await si.DeferAsync();
|
||||
if (si is not SocketMessageComponent smc)
|
||||
return;
|
||||
|
||||
if (smc.User.Id != ctx.User.Id || smc.Message.Id != msg.Id)
|
||||
if (smc.Message.Id != msg.Id)
|
||||
return;
|
||||
|
||||
await si.DeferAsync();
|
||||
if (smc.User.Id != ctx.User.Id)
|
||||
return;
|
||||
|
||||
if (smc.Data.CustomId == BUTTON_LEFT)
|
||||
|
@@ -960,6 +960,7 @@
|
||||
"module_description_permissions": "Setup perms for commands, filter words and set up command cooldowns",
|
||||
"module_description_searches": "Search for jokes, images of animals, anime and manga",
|
||||
"module_description_xp": "Gain xp based on chat activity, check users' xp cards",
|
||||
"module_description_medusa": "**Bot Owner only.** Load, unload and handle dynamic modules. Read more [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)",
|
||||
"module_description_missing": "Description is missing for this module.",
|
||||
"obsolete_use": "⚠ Obsolete, use {0} instead.",
|
||||
"purge_user_confirm": "Are you sure that you want to purge {0} from the database?",
|
||||
|
Reference in New Issue
Block a user