Skip to content
Snippets Groups Projects
Commit 634d123f authored by Dnns's avatar Dnns
Browse files

Added activity that is shown in members list below the bots name and added a...

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
parent 2b9e2af4
Branches
No related tags found
No related merge requests found
...@@ -7,7 +7,8 @@ from dotenv import load_dotenv ...@@ -7,7 +7,8 @@ from dotenv import load_dotenv
load_dotenv() load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN') TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = int(os.getenv('DISCORD_GUILD')) 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. # Returns an guild object, that matches the id specified in GUILD.
...@@ -163,6 +164,9 @@ async def on_message(message): ...@@ -163,6 +164,9 @@ async def on_message(message):
await fu_modify_roles(message, add=True) await fu_modify_roles(message, add=True)
elif msg.startswith("=fu-remove-roles"): elif msg.startswith("=fu-remove-roles"):
await fu_modify_roles(message, add=False) 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) client.run(TOKEN)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment