Merge branch 'update-pycord' into 'master'

bump pycord

See merge request aaron-riedel/shbot!23
This commit is contained in:
Aaron Riedel 2022-05-19 00:12:25 +00:00
commit f7cc76d280
3 changed files with 7 additions and 6 deletions

6
bot.py
View file

@ -100,7 +100,7 @@ class Confirm(discord.ui.View):
self.stop() self.stop()
@bot.slash_command(guild_ids=[261575556708040705]) @bot.slash_command(guild_ids=[261575556708040705])
@permissions.has_role(member_role) @commands.has_role(member_role)
async def roll(ctx, async def roll(ctx,
dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"), 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) await ctx.response.send_message(embed=em)
@bot.slash_command(guild_ids=[261575556708040705]) @bot.slash_command(guild_ids=[261575556708040705])
@permissions.has_role(gm_role) @commands.has_role(gm_role)
async def gmroll(ctx, async def gmroll(ctx,
dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"), 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]) @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): async def emoji_text(ctx, message: discord.Message):
modal = MyModal() modal = MyModal()
modal.title = "Emoji Bot" modal.title = "Emoji Bot"

View file

@ -4,6 +4,7 @@ import time
import datetime import datetime
import random import random
import os import os
import sys
from os import system from os import system
from os import environ from os import environ
from discord.ext import commands from discord.ext import commands
@ -22,7 +23,7 @@ bot = commands.Bot(intents=intents, command_prefix=prefix)
@bot.event @bot.event
async def on_connect(): async def on_connect():
print("Bot ready on Version %s..." % discord.__version__) 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") os._exit(0)
bot.run(token) bot.run(token)

View file

@ -1 +1 @@
py-cord==2.0.0b7 py-cord==2.0.0rc1