.modules commanad now has a medusa module description

This commit is contained in:
Kwoth
2022-04-28 06:10:47 +02:00
parent 35ddd150ba
commit 78d97db224
4 changed files with 9 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
- Fixed `.deletexp` command - Fixed `.deletexp` command
- `.give` command should send DMs again - `.give` command should send DMs again
- `.modules` commanad now has a medusa module description
## [4.1.2] - 16.04.2022 ## [4.1.2] - 16.04.2022

View File

@@ -129,6 +129,8 @@ public partial class Help : NadekoModule<HelpService>
return strs.module_description_permissions; return strs.module_description_permissions;
case "xp": case "xp":
return strs.module_description_xp; return strs.module_description_xp;
case "medusa":
return strs.module_description_medusa;
default: default:
return strs.module_description_missing; return strs.module_description_missing;
} }

View File

@@ -159,11 +159,14 @@ public static class MessageChannelExtensions
{ {
_ = Task.Run(async () => _ = Task.Run(async () =>
{ {
await si.DeferAsync();
if (si is not SocketMessageComponent smc) if (si is not SocketMessageComponent smc)
return; 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; return;
if (smc.Data.CustomId == BUTTON_LEFT) if (smc.Data.CustomId == BUTTON_LEFT)

View File

@@ -960,6 +960,7 @@
"module_description_permissions": "Setup perms for commands, filter words and set up command cooldowns", "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_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_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.", "module_description_missing": "Description is missing for this module.",
"obsolete_use": "⚠ Obsolete, use {0} instead.", "obsolete_use": "⚠ Obsolete, use {0} instead.",
"purge_user_confirm": "Are you sure that you want to purge {0} from the database?", "purge_user_confirm": "Are you sure that you want to purge {0} from the database?",