@echo @echo off
call %~dp0venv\Scripts\activate
cd %~dp0bot
python botrun.py
pauseimport discord
from discord.ext import commands
from discord import client
TOKEN = "Токен"
client = commands.Bot(command_prefix=('f?'))
client.remove_command( 'help' )
@client.event
async def on_ready():
await client.change_presence(status = discord.Status.do_not_disturb, activity = discord.Activity(type=discord.ActivityType.watching, name='f?help | | '))
print("Flamengo bot запущен!")
#-------------------------------------------------------------------------------------------------------------
#------------------------------------------------общение------------------------------------------------------
@client.command()
async def привет(ctx):
await ctx.reply('привет!')
@client.group(invoke_without_command = True)
async def как(ctx):
await ctx.reply('что именно?')
@как.command()
async def дела(ctx):
await ctx.reply('Хорошо, а у тебя?')
#-------------------------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------------------------
client.run(TOKEN)