diff --git a/README.md b/README.md index 6dbc57c..c21dbf8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ -# secondbot +# SECOND BOT -der Bot für den SecondHemd Discord \ No newline at end of file +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 +``` \ No newline at end of file diff --git a/bot.py b/bot.py index 6fb045a..7bd910d 100644 --- a/bot.py +++ b/bot.py @@ -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()