sopel/modules/bq.py

21 lines
546 B
Python
Raw Normal View History

2017-11-22 19:26:40 -05:00
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Various things related to Banished Quest.
"""
from module import commands
from tools.time import relativeTime
#from datetime import datetime
@commands('bq')
def BQstatus(bot, trigger):
"""
Displays the current status of BQ.
"""
status = "\x0304DEAD"
#deathdate = datetime(year=2017, month=2, day=16, hour=0, minute=19)
deathdate = "[2017-02-16 00:19:00]"
msg = "Banished Quest status: " + status + "\nTime since death: "
msg += relativeTime(bot, trigger.nick, deathdate)
bot.say(msg)