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