|
|
@ -7,6 +7,7 @@ import datetime |
|
|
|
import urllib.request |
|
|
|
import json |
|
|
|
import logging |
|
|
|
import random |
|
|
|
|
|
|
|
import discord |
|
|
|
from discord.ext import commands |
|
|
@ -26,6 +27,9 @@ MENSA_NAME = { |
|
|
|
"turm": "Turmmensa" |
|
|
|
} |
|
|
|
|
|
|
|
with open("stoll.txt", "r") as tmp_file: |
|
|
|
STOLL = tmp_file.readlines() |
|
|
|
|
|
|
|
@BOT.event |
|
|
|
async def on_ready(): |
|
|
|
""" On ready """ |
|
|
@ -78,7 +82,8 @@ async def mensa(which="zentral"): |
|
|
|
@BOT.command() |
|
|
|
async def magie(): |
|
|
|
"""MAGIEEEEEE""" |
|
|
|
await BOT.say("Magie ist Physik durch wollen!") |
|
|
|
rand = random.SystemRandom() |
|
|
|
await BOT.say(STOLL[rand.randrange(0, len(STOLL), 1)]) |
|
|
|
|
|
|
|
def main(): |
|
|
|
""" entry point """ |
|
|
|