Commit 291290f5 authored by IS1_4M's avatar IS1_4M
Browse files

fixed double command panel bug

parent b2d2f7d5
......@@ -207,6 +207,7 @@ async def on_message(message):
# return
if content.startswith('!commandpanel'):
await GeneralControlPanel._init_(message.channel)
return 1
elif content.startswith('!examples'):
commands = ['!clublist\n\t\t - lists all clubs in ' + message.channel.guild.name,
'!joinclub ECHackers\n\t\t - Joins the ECHackers Club',
......
......@@ -416,6 +416,7 @@ class ClubSuite(AbstractChanSuite):
return ClubSuite.ui_requestbot()
elif content.startswith('!commandpanel'):
await ClubControlPanel._init_(message.channel)
return 1
return 0
async def process_user_commands(message):
......
......@@ -10,7 +10,7 @@ from datetime import datetime
from random import random
import json
DEV_MODE = False
DEV_MODE = True
with open('../../../ECHackersBotCreds/credentials' + ('_test_bot.json' if DEV_MODE else '.json')) as file:
credentials = json.load(file)
......
Markdown is supported
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