# Maki # ---- # Discord bot by MrDetonia # # Copyright 2019 Zac Herd # Licensed under BSD 3-clause License, see LICENSE.md for more info # IMPORTS import os import json # bot version version = "v1.3.0" # TODO: generate this on the fly and make it look acceptable # text shown by .help command helptext = """I am **Maki**, a Discord bot written in Python My commands are: **.help** | displays this text **.info** | prints bot info **.upskirt** | show a link to my source **.whoami** | displays your user info **.whois ** | displays another user's info **.seen ** | prints when user was last seen **.say ** | say something **.sayy ** | say something a e s t h e t i c a l l y **.markov []** | generate markov chain over chat history for you or another user **.roll d** | roll x number of y sided dice **.spell ** | search for a D&D spell **.qr ** | generate a QR code **.np []** | fetch now playing from last.fm for you or a specific username **.steam []** | fetch steam status for you or a specific vanityname """ # IDs of admin users admins = ['116883900688629761'] # log of users' last messages and timestamps history = {} if os.path.isfile('hist.json'): with open('hist.json', 'r') as fp: history = json.load(fp) # quiet modes quiet = {} spellslist = {}