Skip to content
Snippets Groups Projects
Commit 97f930a2 authored by dnns01's avatar dnns01
Browse files

Added !motivation command, that chooses random a text from a list to motivate somebody

parent 329135cf
Branches
No related tags found
No related merge requests found
import json import json
import os import os
import random
import re import re
import discord import discord
...@@ -102,6 +103,15 @@ async def send_dm(user, message, embed=None): ...@@ -102,6 +103,15 @@ async def send_dm(user, message, embed=None):
await user.dm_channel.send(message, embed=embed) await user.dm_channel.send(message, embed=embed)
@bot.command(name="motivation")
async def cmd_motivation(ctx):
texts = ["Leb' deinen Traum, denn er wird wahr. Geh deinen Weg, stelle dich der Gefahr...",
"Alles was wichtig ist wirst du erkennen wenn die Zeit gekommen ist."]
text = random.choice(texts)
await ctx.send(text)
@bot.command(name="sinn") @bot.command(name="sinn")
async def cmd_sinn(ctx): async def cmd_sinn(ctx):
await ctx.send("42 :robot:") await ctx.send("42 :robot:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment