lunarflu HF Staff commited on
Commit
acb1ed0
·
1 Parent(s): 2acca7b

v0.2 channel id check

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -19,6 +19,11 @@ class MyClient(discord.Client):
19
  if message.author == self.user:
20
  return
21
 
 
 
 
 
 
22
  if message.content.find("!help") != -1:
23
  await message.reply("Use !jojo !disney !spidey or !sketch. Have fun!", mention_author=True)
24
 
 
19
  if message.author == self.user:
20
  return
21
 
22
+ # channels where bot will accept commands
23
+ ALLOWED_CHANNEL_IDS = [1100458786826747945] # 1100458786826747945 = #bot-test
24
+ if message.channel.id not in ALLOWED_CHANNEL_IDS:
25
+ return
26
+
27
  if message.content.find("!help") != -1:
28
  await message.reply("Use !jojo !disney !spidey or !sketch. Have fun!", mention_author=True)
29