Discord Script Tweak

This commit is contained in:
Alex Orid 2020-11-18 02:16:55 -05:00
parent 1438e5fbab
commit a57ac29e72

View File

@ -17,6 +17,7 @@ import credentials
import discord import discord
import discord.message import discord.message
import discord.channel import discord.channel
import discord.abc
from cooldowns import Cooldown_Module from cooldowns import Cooldown_Module
@ -52,8 +53,13 @@ class Discord_Module(discord.Client):
#print(str(message.id)) #print(str(message.id))
#Channel ID #Channel ID
#print(str(message.channel.id)) #print(str(message.channel.id))
if message.content == "//test": if message.content == "//testing":
await message.channel.send('test response') await message.channel.send('test response')
#test = self.get_channel(431129571308339210)
#await test.send("testerino")
if not await self.isSenderBot(message): if not await self.isSenderBot(message):
if self.cooldownModule.isCooldownActive("discordRateLimit") == False: if self.cooldownModule.isCooldownActive("discordRateLimit") == False: