fulvia/modules/rundown.py

24 lines
562 B
Python
Raw Normal View History

2018-03-16 03:13:43 -04:00
#!/usr/bin/env python3
"""
Redpill on the Bogdanovs.
"""
import os
import random
from module import commands, example
@commands("rundown")
@example(".rundown")
def rundown(bot, trigger):
2018-03-16 03:13:43 -04:00
"""
2018-06-09 01:15:14 -04:00
Provides rundown on demand. -c, --cabal for the IRCabal version.
2018-03-16 03:13:43 -04:00
"""
2020-01-07 18:58:19 -05:00
if len(trigger.args) > 2:
if trigger.args[1] in ["-c", "--cabal"]:
with open(os.path.join(bot.static, "cabaldown.txt"), "r") as file:
data = file.read()
2018-03-16 03:13:43 -04:00
else:
with open(os.path.join(bot.static, "rundown.txt"), "r") as file:
data = file.read()
2018-05-25 15:21:18 -04:00
bot.msg(data)