Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Tarkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class Tarkin(commands.Bot):
"""
Final class for the discord bot.
Second comment.
"""
bot_greeting: str
perms: CmdManager
Expand Down Expand Up @@ -47,6 +48,7 @@ async def on_message(self, message: discord.Message) -> None:
else:
await self.wrong_permissins(message)
return

else:
continue
# if no command found
Expand All @@ -66,8 +68,8 @@ async def wrong_permissins(self, message: discord.Message) -> None:


if __name__ == '__main__':
perm_path = "example_permissions.json"
config_path = "example_config.json"
bot_intents = discord.Intents.default()
bot_intents.message_content = True

client = Tarkin(perm_path, intents=bot_intents)
client = Tarkin(config_path, intents=bot_intents)
7 changes: 0 additions & 7 deletions bot_actions/all.py

This file was deleted.

10 changes: 0 additions & 10 deletions example_permissions.json

This file was deleted.