From 634d123f2b4c82f57fd620f7c70fbb88e6cacf99 Mon Sep 17 00:00:00 2001
From: Dnns <invisiblee@arcor.de>
Date: Fri, 10 Apr 2020 15:05:50 +0200
Subject: [PATCH] Added activity that is shown in members list below the bots
 name and added a new command, that sends a link the discrod to share with
 others

---
 fernuni-bot.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/fernuni-bot.py b/fernuni-bot.py
index 756b6fa..e9a01b7 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)
-- 
GitLab