mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
This creates a central location to store external API tokens that can be used between cogs without requiring each cog to be loaded for it to work. A new set option for `[p]set api` is created to assist in forming bot readable API token locations. This also updates the Streams cog to utilize the central database. Tokens are moved from the old data locations in core cogs on load.
8 lines
118 B
Python
8 lines
118 B
Python
from .image import Image
|
|
|
|
|
|
async def setup(bot):
|
|
cog = Image(bot)
|
|
await cog.initialize()
|
|
bot.add_cog(cog)
|