working example

This commit is contained in:
Aaron Riedel 2022-01-30 18:08:56 +01:00
parent 766859a53a
commit 9889574f33

33
bot.py
View file

@ -51,6 +51,34 @@ def is_gm():
return commands.check(predicate) return commands.check(predicate)
emojinumbers = ["0\u20E3", "1\u20E3" , "2\u20E3" , "3\u20E3" , "4\u20E3" , "5\u20E3" , "6\u20E3" , "7\u20E3" , "8\u20E3" , "9\u20E3"] emojinumbers = ["0\u20E3", "1\u20E3" , "2\u20E3" , "3\u20E3" , "4\u20E3" , "5\u20E3" , "6\u20E3" , "7\u20E3" , "8\u20E3" , "9\u20E3"]
alphabet = {
"a" : "🇦",
"b" : "🇧",
"c" : "🇨",
"d" : "🇩",
"e" : "🇪",
"f" : "🇫",
"g" : "🇬",
"h" : "🇭",
"i" : "🇮",
"j" : "🇯",
"k" : "🇰",
"l" : "🇱",
"m" : "🇲",
"n" : "🇳",
"o" : "🇴",
"p" : "🇵",
"q" : "🇶",
"r" : "🇷",
"s" : "🇸",
"t" : "🇹",
"u" : "🇺",
"v" : "🇻",
"w" : "🇼",
"x" : "🇽",
"y" : "🇾",
"z" : "🇿",
}
bot.help_command = commands.DefaultHelpCommand(dm_help=False, no_category="Befehle die du nutzen kannst") bot.help_command = commands.DefaultHelpCommand(dm_help=False, no_category="Befehle die du nutzen kannst")
@ -153,8 +181,9 @@ async def gmroll(ctx,
@bot.message_command(name="Emoji Text", guild_ids=[261575556708040705]) @bot.message_command(name="Emoji Text", guild_ids=[261575556708040705])
async def emoji_text(ctx, message: discord.Message): async def emoji_text(ctx, message: discord.Message):
for x in emojinumbers: emojitext = "shiba"
await message.add_reaction(x) for x in list(emojitext):
await message.add_reaction(alphabet[x])
@bot.command(help="veraltet", usage="", hidden=True) @bot.command(help="veraltet", usage="", hidden=True)
@is_member() @is_member()