Skip to content

Commit

Permalink
Команда >status #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fedKotikeD committed Oct 3, 2023
1 parent 1e026f1 commit 210f935
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions RUN_THIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@

@bot.event
async def on_message(message):
if message.content.startswith("ping"): #crtl
if message.content.startswith("ping"):
await message.channel.send("Pong!")

@bot.event
async def on_ready():
print("Бип-буп! Запуск успешный!")
await bot.change_presence(activity=discord.Game(name="Breaking Facility"))

@client.command
async def hello(ctx):
await ctx.send("Hi!")
# @client.command
# async def hello(ctx):
# await ctx.send("Hi!")

# @client.command()
# async def ping(ctx):
# await ctx.send("Pong")
server_status = requests.get('ip/status')
@bot.event
async def on_message(message):
if message.content.startswith("status"):
await message.channel.send(server_status)

bot.run(bot_token)

0 comments on commit 210f935

Please sign in to comment.