Merge branch 'master' into feature/context-menu

This commit is contained in:
Aaron Riedel 2022-02-10 19:22:35 +01:00
commit 4b39c5f11f
3 changed files with 26 additions and 3 deletions

5
bot.py
View file

@ -214,6 +214,7 @@ async def survey(ctx, *, arg):
if a < z and a != 0: if a < z and a != 0:
await ask_msg.add_reaction(x) await ask_msg.add_reaction(x)
a = a + 1 a = a + 1
await ask_msg.create_thread(name="Diskussion")
@bot.command(help="Umfrage bearbeiten", usage="ID | <Frage> | <Antwort1> | <Antwort2> ...", hidden=True) @bot.command(help="Umfrage bearbeiten", usage="ID | <Frage> | <Antwort1> | <Antwort2> ...", hidden=True)
@is_member() @is_member()
@ -244,14 +245,14 @@ async def vote(ctx, *, arg):
ask_msg = await ctx.send(content="||@here||",embed=em) ask_msg = await ctx.send(content="||@here||",embed=em)
for x in ["", "", ""]: for x in ["", "", ""]:
await ask_msg.add_reaction(x) await ask_msg.add_reaction(x)
await ask_msg.create_thread(name="Diskussion")
@bot.command(help="den Bot etwas sagen lassen", usage="<text>") @bot.command(help="den Bot etwas sagen lassen", usage="<text>")
@is_admin() @is_admin()
async def say(ctx, *, arg): async def say(ctx, *, arg):
await ctx.message.delete() await ctx.message.delete()
em = discord.Embed(description=arg, colour=0x00E0FF) em = discord.Embed(description=arg, colour=0x00E0FF)
await message.channel.send(embed=em) await ctx.message.channel.send(embed=em)
await message.delete()
@bot.command(help="Starte ne Runde PnP", usage="@Rolle") @bot.command(help="Starte ne Runde PnP", usage="@Rolle")
@is_gm() @is_gm()

22
clear_commands.py Normal file
View file

@ -0,0 +1,22 @@
import discord
import os
from os import system
from os import environ
from discord.ext import commands
intents = discord.Intents(
guilds=True,
members=True,
messages=True,
)
token = os.environ['TOKEN']
prefix = os.environ['PREFIX']
bot = commands.Bot(intents=intents, command_prefix=prefix)
client = discord.Client()
@bot.event
async def on_ready():
print("Bot ready on Version %s..." % discord.__version__)
bot.run(token)

View file

@ -1 +1 @@
py-cord==2.0.0b1 py-cord==2.0.0b3