Update main.py
Browse files
main.py
CHANGED
@@ -5,6 +5,7 @@ from dotenv import load_dotenv
|
|
5 |
import discord
|
6 |
from discord.ext import commands
|
7 |
from glai import GLAI
|
|
|
8 |
|
9 |
load_dotenv()
|
10 |
|
@@ -56,6 +57,9 @@ async def handle_message(message: discord.Message):
|
|
56 |
global allowed_channels
|
57 |
|
58 |
print(f"channel: {message.channel.id}")
|
|
|
|
|
|
|
59 |
|
60 |
if (message.channel.id in allowed_channels) or ("1368647373110382702" in content):
|
61 |
if "start" in content and str(user) == "adityasharmalive" and status is False:
|
|
|
5 |
import discord
|
6 |
from discord.ext import commands
|
7 |
from glai import GLAI
|
8 |
+
import time
|
9 |
|
10 |
load_dotenv()
|
11 |
|
|
|
57 |
global allowed_channels
|
58 |
|
59 |
print(f"channel: {message.channel.id}")
|
60 |
+
|
61 |
+
if message.channel.id == 1371683872974311575:
|
62 |
+
time.sleep(2)
|
63 |
|
64 |
if (message.channel.id in allowed_channels) or ("1368647373110382702" in content):
|
65 |
if "start" in content and str(user) == "adityasharmalive" and status is False:
|