Код для Дискорд-бота по экономике
import discord
import os
from discord.ext import commands
TOKEN = Ваш токен
PREFIX = ?
bot = commands.AutoShardedBot(command_prefix=?)
@bot.event
async def on_ready():
print(f"{bot.user.name} готов!")
activity = discord.Activity(type=discord.ActivityType.listening, name=F"{?}help")
await bot.change_presence(status=discord.Status.dnd, activity=activity)
for fn in os.listdir("./cogs"):
if fn.endswith(".py"):
bot.load_extension(f"cogs.{fn[:-3]}")
bot.run(ваш токен) import discord
import sqlite3
import random
from discord.ext import commands
def get_random_color():
return random.choice([0x4287f5, 0xf54242, 0xf5f242])
def open_account(user: discord...