কোডিং চাঙ্গে আমি ভাষী গাঙে

swadhinbiswas committed 2 years ago
3514a05
1 parent da0c3b0
commit 3514a05
1 file changed
+6 -7
Showing 1 changed file+6-7
▼GithubfetchBot/main.py
+6-7
10
10
load_dotenv()
11
11
TOKEN:Final[str] = os.getenv('DISCORD_TOKEN')
12
12
13
-intentes:discord.Intents=discord.Intents.default()
14
-
15
-intentes.messages=True
16
-intentes.reactions=True
17
-intentes.presences=True
18
-intentes.typing=True
13
+intentes:discord.Intents=discord.Intents.all()
19
14
20
15
client:discord.Client=discord.Client(intents=intentes)
21
16
31
26
async def on_ready():
32
27
logger.info(f'user:{bot.user.name} (ID:{bot.user.id}) has connected to Discord!')
33
28
34
- @bot.command()
29
+ @bot.command(
30
+ help="Responds with 'Pong!' and the latency in milliseconds."
31
+ )
35
32
async def ding(ctx):
36
33
await ctx.send(f'Pong! {round(bot.latency*1000)}ms')
37
34
42
39
43
40
if __name__=="__main__":
44
41
run_bot()
42
+
43
+# কোডিং চাঙ্গে আমি ভাষী গাঙে
45
44