Compare commits
2 commits
a014770ca2
...
10e2ac1d83
Author | SHA1 | Date | |
---|---|---|---|
10e2ac1d83 | |||
97c6bcfa2b |
1 changed files with 4 additions and 0 deletions
|
@ -14,9 +14,13 @@ class ExportChannels(commands.Cog):
|
|||
bot_token = None
|
||||
)
|
||||
|
||||
class ConfigException(Exception):
|
||||
pass
|
||||
|
||||
async def export(self, channels: list):
|
||||
token = await self.config.bot_token()
|
||||
if token is None:
|
||||
raise(self.ConfigException, "Bot token not set!")
|
||||
self.data_path = data_manager.cog_data_path(self)
|
||||
self.bundled_data_path = data_manager.bundled_data_path(self)
|
||||
out = f'{self.data_path}{os.sep}Exported Channels'
|
||||
|
|
Loading…
Reference in a new issue