21 lines
546 B
Python
21 lines
546 B
Python
|
#! /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)
|