Skip to content
Snippets Groups Projects
Commit 291290f5 authored by IS1_4M's avatar IS1_4M
Browse files

fixed double command panel bug

parent b2d2f7d5
Branches
No related merge requests found
...@@ -207,6 +207,7 @@ async def on_message(message): ...@@ -207,6 +207,7 @@ async def on_message(message):
# return # return
if content.startswith('!commandpanel'): if content.startswith('!commandpanel'):
await GeneralControlPanel._init_(message.channel) await GeneralControlPanel._init_(message.channel)
return 1
elif content.startswith('!examples'): elif content.startswith('!examples'):
commands = ['!clublist\n\t\t - lists all clubs in ' + message.channel.guild.name, commands = ['!clublist\n\t\t - lists all clubs in ' + message.channel.guild.name,
'!joinclub ECHackers\n\t\t - Joins the ECHackers Club', '!joinclub ECHackers\n\t\t - Joins the ECHackers Club',
......
...@@ -416,6 +416,7 @@ class ClubSuite(AbstractChanSuite): ...@@ -416,6 +416,7 @@ class ClubSuite(AbstractChanSuite):
return ClubSuite.ui_requestbot() return ClubSuite.ui_requestbot()
elif content.startswith('!commandpanel'): elif content.startswith('!commandpanel'):
await ClubControlPanel._init_(message.channel) await ClubControlPanel._init_(message.channel)
return 1
return 0 return 0
async def process_user_commands(message): async def process_user_commands(message):
......
No preview for this file type
No preview for this file type
...@@ -10,7 +10,7 @@ from datetime import datetime ...@@ -10,7 +10,7 @@ from datetime import datetime
from random import random from random import random
import json import json
DEV_MODE = False DEV_MODE = True
with open('../../../ECHackersBotCreds/credentials' + ('_test_bot.json' if DEV_MODE else '.json')) as file: with open('../../../ECHackersBotCreds/credentials' + ('_test_bot.json' if DEV_MODE else '.json')) as file:
credentials = json.load(file) credentials = json.load(file)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment