Browse Source

Made new section in config for tokens seeing as im building a fucking list it seems.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
2b10465f4b
2 changed files with 12 additions and 4 deletions
  1. +4
    -2
      roxbot/__init__.py
  2. +8
    -2
      roxbot/settings/preferences_example.ini

+ 4
- 2
roxbot/__init__.py View File

settings.read("roxbot/settings/preferences.ini") settings.read("roxbot/settings/preferences.ini")


command_prefix = settings["Roxbot"]["Command_Prefix"] command_prefix = settings["Roxbot"]["Command_Prefix"]
token = settings["Roxbot"]["Token"]
owner = int(settings["Roxbot"]["OwnerID"]) owner = int(settings["Roxbot"]["OwnerID"])
tat_token = settings["Roxbot"]["Tatsumaki_Token"]

token = settings["Tokens"]["Discord"]
tat_token = settings["Tokens"]["Tatsumaki"]
imgur_token = settings["Tokens"]["Imgur"]




__description__ = """RoxBot, A Discord Bot made by a filthy Mercy Main. Built with love (and discord.py) by Roxxers#7443. __description__ = """RoxBot, A Discord Bot made by a filthy Mercy Main. Built with love (and discord.py) by Roxxers#7443.

+ 8
- 2
roxbot/settings/preferences_example.ini View File

[Roxbot] [Roxbot]
OwnerID=451192272349036545 OwnerID=451192272349036545
Token=TokenHere
Command_Prefix=r; Command_Prefix=r;
Tatsumaki_Token=TokenHere

[Tokens]
; REQUIRED
Discord=TokenHere
;used by reddit cog
Imgur=TokenHere
;Only for GSSP cog use
Tatsumaki=TokenHere

Loading…
Cancel
Save