Maki is a Discord bot that does things. Written in Python 3 and relies on Discord.py API implementation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3KB

  1. # Maki
  2. # ----
  3. # Discord bot by MrDetonia
  4. #
  5. # Copyright 2019 Zac Herd
  6. # Licensed under BSD 3-clause License, see LICENSE.md for more info
  7. # IMPORTS
  8. import os
  9. import json
  10. # bot version
  11. version = "v1.3.0"
  12. # TODO: generate this on the fly and make it look acceptable
  13. # text shown by .help command
  14. helptext = """I am **Maki**, a Discord bot written in Python
  15. My commands are:
  16. **.help** | displays this text
  17. **.info** | prints bot info
  18. **.upskirt** | show a link to my source
  19. **.whoami** | displays your user info
  20. **.whois <user>** | displays another user's info
  21. **.seen <user>** | prints when user was last seen
  22. **.say <msg>** | say something
  23. **.sayy <msg>** | say something a e s t h e t i c a l l y
  24. **.markov [<user>]** | generate markov chain over chat history for you or another user
  25. **.roll <num>d<val>** | roll x number of y sided dice
  26. **.spell <term>** | search for a D&D spell
  27. **.qr <msg>** | generate a QR code
  28. **.np [<user>]** | fetch now playing from last.fm for you or a specific username
  29. **.steam [<user>]** | fetch steam status for you or a specific vanityname
  30. """
  31. # IDs of admin users
  32. admins = ['116883900688629761']
  33. # log of users' last messages and timestamps
  34. history = {}
  35. if os.path.isfile('hist.json'):
  36. with open('hist.json', 'r') as fp:
  37. history = json.load(fp)
  38. # quiet modes
  39. quiet = {}
  40. spellslist = {}