Spaces:
Runtime error
Runtime error
Update mybot.py
Browse files
mybot.py
CHANGED
|
@@ -2,11 +2,12 @@ import discord
|
|
| 2 |
from discord.ext import commands
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
# وەرگرتنا تۆکنێ
|
| 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(
|
| 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)
|