diff --git a/fernuni-bot.py b/fernuni-bot.py index 756b6fa28fd7b00a437c64c390afa4e6ee133c78..e9a01b7fe1fc53948bc4d5f69f1e8a3a20c81754 100644 --- a/fernuni-bot.py +++ b/fernuni-bot.py @@ -7,7 +7,8 @@ from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') GUILD = int(os.getenv('DISCORD_GUILD')) -client = discord.Client() +activity = discord.Game("ein Rollenspiel") +client = discord.Client(activity=activity) # Returns an guild object, that matches the id specified in GUILD. @@ -163,6 +164,9 @@ async def on_message(message): await fu_modify_roles(message, add=True) elif msg.startswith("=fu-remove-roles"): await fu_modify_roles(message, add=False) + elif msg == "=fu-link": + await message.channel.send( + "Um andere auf diesen Discord einzuladen, nutze bitte folgenden Link: http://fernuni-discord.dnns01.de") client.run(TOKEN)