Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Aaron Riedel 2022-01-22 19:42:56 +01:00
commit 9407111771
2 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,19 @@
# secondbot
# SECOND BOT
der Bot für den SecondHemd Discord
der Bot für den SecondHemd Discord
# Build
```
docker build https://git.ar21.de/aaron/shbot.git -t aaronriedel/shbot:latest
```
# Docker compose
```
services:
bot:
image: aaronriedel/shbot:latest
container_name: shbot
restart: unless-stopped
environment:
- TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```

2
bot.py
View file

@ -143,7 +143,7 @@ async def on_message(message):
else:
em = discord.Embed(description=str(right(message.content,len(message.content)-6)), colour=0x00E0FF)
em.set_author(name=message.author.display_name, url=discord.Embed.Empty, icon_url=message.author.avatar_url)
ask_msg = await message.channel.send( embed=em)
ask_msg = await message.channel.send(content="||@here||",embed=em)
for x in ["", "", ""]:
await ask_msg.add_reaction(x)
await message.delete()