From 4ee864dc28da7da501a0f708d9cde27cff140488 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 19 May 2022 01:20:08 +0200 Subject: [PATCH 1/4] bump pycord --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 23eaf87..027a78e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -py-cord==2.0.0b7 \ No newline at end of file +py-cord==2.0.0rc1 From 142a49646cee8114ec72be82e2112337048aa196 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 19 May 2022 01:37:40 +0200 Subject: [PATCH 2/4] try to fix clear commands --- clear_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clear_commands.py b/clear_commands.py index 8fd85e0..bf9c2c7 100644 --- a/clear_commands.py +++ b/clear_commands.py @@ -22,7 +22,7 @@ bot = commands.Bot(intents=intents, command_prefix=prefix) @bot.event async def on_connect(): print("Bot ready on Version %s..." % discord.__version__) - await bot.sync_commands(commands=[], check_guilds=[261575556708040705]) + await bot.sync_commands(commands=[], guild_ids=[261575556708040705]) print("Press Ctl+c to exit now") bot.run(token) \ No newline at end of file From d25b3f9a54ef62b6395cd6c55e8b1a80616814d2 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 19 May 2022 01:59:27 +0200 Subject: [PATCH 3/4] try to fix clear commands --- clear_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clear_commands.py b/clear_commands.py index bf9c2c7..5bb7e59 100644 --- a/clear_commands.py +++ b/clear_commands.py @@ -4,6 +4,7 @@ import time import datetime import random import os +import sys from os import system from os import environ from discord.ext import commands @@ -23,6 +24,6 @@ bot = commands.Bot(intents=intents, command_prefix=prefix) async def on_connect(): print("Bot ready on Version %s..." % discord.__version__) await bot.sync_commands(commands=[], guild_ids=[261575556708040705]) - print("Press Ctl+c to exit now") + os._exit(0) bot.run(token) \ No newline at end of file From 5591f8c02e971e76f5f39d21fba6714b62f4c75c Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 19 May 2022 02:10:09 +0200 Subject: [PATCH 4/4] fix bot and bump version to rc1 --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 36a046e..c7003a0 100644 --- a/bot.py +++ b/bot.py @@ -100,7 +100,7 @@ class Confirm(discord.ui.View): self.stop() @bot.slash_command(guild_ids=[261575556708040705]) -@permissions.has_role(member_role) +@commands.has_role(member_role) async def roll(ctx, dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"), ): @@ -133,7 +133,7 @@ async def roll(ctx, await ctx.response.send_message(embed=em) @bot.slash_command(guild_ids=[261575556708040705]) -@permissions.has_role(gm_role) +@commands.has_role(gm_role) async def gmroll(ctx, dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"), ): @@ -181,7 +181,7 @@ class MyModal(Modal): @bot.message_command(name="Emoji Text", guild_ids=[261575556708040705]) -@permissions.has_role(member_role) +@commands.has_role(member_role) async def emoji_text(ctx, message: discord.Message): modal = MyModal() modal.title = "Emoji Bot"