real1agreen commited on
Commit
b6bf6ea
·
verified ·
1 Parent(s): 2b5c2fb

Update mybot.py

Browse files
Files changed (1) hide show
  1. mybot.py +3 -2
mybot.py CHANGED
@@ -2,11 +2,12 @@ import discord
2
  from discord.ext import commands
3
  import os
4
 
5
- # وەرگرتنا تۆکنێ ب شێوەیەکێ پاراستی ژ Secrets
6
  TOKEN = os.environ.get('TOKEN')
7
 
8
  intents = discord.Intents.default()
9
  intents.message_content = True
 
10
 
11
  bot = commands.Bot(command_prefix='!', intents=intents)
12
 
@@ -17,7 +18,7 @@ async def on_ready():
17
 
18
  @bot.command()
19
  async def hello(ctx):
20
- await ctx.send("Hello! I am online now.")
21
 
22
  if TOKEN:
23
  bot.run(TOKEN)
 
2
  from discord.ext import commands
3
  import os
4
 
5
+ # وەرگرتنا تۆکنێ ژ بەشێ Secrets
6
  TOKEN = os.environ.get('TOKEN')
7
 
8
  intents = discord.Intents.default()
9
  intents.message_content = True
10
+ intents.members = True
11
 
12
  bot = commands.Bot(command_prefix='!', intents=intents)
13
 
 
18
 
19
  @bot.command()
20
  async def hello(ctx):
21
+ await ctx.send('Hello! I am AGREEN bot. I am online 24/7 now!')
22
 
23
  if TOKEN:
24
  bot.run(TOKEN)