fulvia/modules/bq.py

23 lines
581 B
Python
Raw Normal View History

2018-03-16 03:13:43 -04:00
#!/usr/bin/env python3
"""
Various things related to Banished Quest.
"""
2018-04-07 14:46:36 -04:00
from datetime import datetime
import tools
import config
2018-03-16 03:13:43 -04:00
from module import commands
@commands('bq')
def BQstatus(bot, trigger):
"""
Displays the current status of BQ.
https://twitter.com/Quidam_Asinus/status/1067130989422489600
2018-03-16 03:13:43 -04:00
"""
status = "\x0304DEAD"
deathdate = datetime(2017, 2, 16, 0, 19, 0)
2018-03-16 03:13:43 -04:00
msg = "Banished Quest status: " + status + "\nTime since death: "
msg += tools.relative_time(datetime.now(), deathdate) + " ago "
msg += deathdate.strftime(config.default_time_format)
2018-05-25 15:21:18 -04:00
bot.msg(msg)