Привет, всем я раскажу как создавал своего Discord Бота на Python Начнём

#Вот его код import discord from discord.ext import commands #connect token = "Ваш токен" mess = [ "hi", "Привет", "ky", "ку", "здарова"] otvet = ["Узнать информацию о сервере", "Команды", 'Админ панель'] yt = ['yt'] client = commands.Bot(command_prefix='#39;) # $help @client.event async def on_ready(): print('Ok') #commands @client.command( pass_context = True) async def hello(ctx): await ctx.send(f"Hello I bot GeffMine My created -> Games Dark") @client.event async def on_message(message): msg = message.content.lower() if msg in mess: await message.channel.send("Привет @everyone я бот GeffMine что хотел?") async def on_message(message): await message in yt await message.channel.send('Ты не ютубер вероятность 50%') client.run(token)

Итак, что же это значит, то есть когда мы запускаем бота то он пишет нам Ok

Ок это значить я подключён и готов работать

И так если мы напишем hello то он ответит Hello I bot GeffMine My created -> Games Dark

Дальше вы сами; )

1 комментарий
)\n# $help\n\n@client.event\n\nasync def on_ready():\n print('Ok')\n#commands\n@client.command( pass_context = True)\nasync def hello(ctx):\n await ctx.send(f\"Hello I bot GeffMine My created -> Games Dark\")\n@client.event\nasync def on_message(message):\n msg = message.content.lower()\n if msg in mess:\n await message.channel.send(\"Привет @everyone я бот GeffMine что хотел?\")\nasync def on_message(message):\n await message in yt\n await message.channel.send('Ты не ютубер вероятность 50%')\nclient.run(token)","lang":""}},{"type":"text","cover":false,"hidden":false,"anchor":"","data":{"text":"

Итак, что же это значит, то есть когда мы запускаем бота то он пишет нам Ok

"}},{"type":"text","cover":false,"hidden":false,"anchor":"","data":{"text":"

Ок это значить я подключён и готов работать

"}},{"type":"text","cover":false,"hidden":false,"anchor":"","data":{"text":"

И так если мы напишем hello то он ответит Hello I bot GeffMine My created -> Games Dark

"}},{"type":"text","cover":false,"hidden":false,"anchor":"","data":{"text":"

Дальше вы сами; )

"}}],"summaryContent":null,"isExistSummaryContent":false,"warningFromEditor":null,"warningFromEditorTitle":null,"counters":{"comments":1,"favorites":1,"reposts":0,"views":2,"hits":643,"reads":null,"online":0},"dateFavorite":0,"hitsCount":643,"isCommentsEnabled":true,"isLikesEnabled":true,"isRemovedByUserRequest":false,"isFavorited":false,"isPinned":false,"repostId":null,"repostData":null,"subscribedToTreads":false,"isEditorial":false,"isAudioAvailable":false,"audioUrl":null,"isAudioAvailableToGenerate":false,"commentEditor":{"enabled":true,"who":null,"text":"","until":null,"reason":null,"type":"everybody"},"isBlur":false,"isPublished":true,"isDisabledAd":false,"withheld":[],"ogTitle":null,"ogDescription":null,"url":"https://vc.ru/id836601/253284-privet-vsem-ya-raskazhu-kak-sozdaval-svoego-discord-bota-na-python-nachnem","author":{"id":836601,"name":"Games Dark","nickname":null,"description":null,"uri":"","avatar":{"type":"image","data":{"uuid":"646a16f7-c952-5642-8844-7aac95220dbc","width":200,"height":200,"size":12846,"type":"png","color":"fbbb4c","hash":"","external_service":[]}},"cover":null,"achievements":[{"title":"Год на vc.ru","code":"registration_1_year","description":"Первый год с vc.ru. Получена 24 июля 2025.","previewUuid":"0d11c244-49de-50e7-894e-b9b27945d42b","formats":{"glb":"https://static.vc.ru/achievements/fish.glb","usdz":"https://static.vc.ru/achievements/fish.usdz"},"viewData":{"contentColor":"#C67AA3","textMaxWidth":0.634765625,"textX":0.5888671875,"textY":0.54296875,"logoX":0.5859375,"logoY":0.6669921875,"logoXNoText":0.6044921875,"logoYNoText":0.5439453125},"id":4601777,"userId":836601,"count":0,"shareImage":"https://api.vc.ru/achievements/share/4601777"},{"title":"3 года на vc.ru","code":"registration_3_years","description":"Провёл 3 года вместе с vc.ru. Получена 23 июля 2025.","previewUuid":"d9d72ac5-bcb5-55e0-8c72-b99251e5cdd9","formats":{"glb":"https://static.vc.ru/achievements/shark.glb","usdz":"https://static.vc.ru/achievements/shark.usdz"},"viewData":{"contentColor":"#8E6F09","textMaxWidth":0.66796875,"textX":0.5205078125,"textY":0.341796875,"logoX":0.5205078125,"logoY":0.4609375,"logoXNoText":0.5,"logoYNoText":0.3662109375},"id":977690,"userId":836601,"count":0,"shareImage":"https://api.vc.ru/achievements/share/977690"}],"lastModificationDate":1764917665,"isSubscribed":false,"isSubscribedToNewPosts":false,"isMuted":false,"isAvailableForMessenger":true,"badgeId":null,"isDonationsEnabled":false,"isPlusGiftEnabled":true,"isUnverifiedBlogForCompanyWithoutPro":false,"isRemovedByUserRequest":false,"isFrozen":false,"isDisabledAd":false,"isPlus":false,"isVerified":false,"isPro":false,"yandexMetricaId":null,"badge":null,"isOnline":false,"tgChannelShortname":null,"isUnsubscribable":true,"type":1,"subtype":"personal_blog"},"subsite":{"id":836601,"name":"Games Dark","nickname":null,"description":null,"uri":"","avatar":{"type":"image","data":{"uuid":"646a16f7-c952-5642-8844-7aac95220dbc","width":200,"height":200,"size":12846,"type":"png","color":"fbbb4c","hash":"","external_service":[]}},"cover":null,"achievements":[{"title":"Год на vc.ru","code":"registration_1_year","description":"Первый год с vc.ru. Получена 24 июля 2025.","previewUuid":"0d11c244-49de-50e7-894e-b9b27945d42b","formats":{"glb":"https://static.vc.ru/achievements/fish.glb","usdz":"https://static.vc.ru/achievements/fish.usdz"},"viewData":{"contentColor":"#C67AA3","textMaxWidth":0.634765625,"textX":0.5888671875,"textY":0.54296875,"logoX":0.5859375,"logoY":0.6669921875,"logoXNoText":0.6044921875,"logoYNoText":0.5439453125},"id":4601777,"userId":836601,"count":0,"shareImage":"https://api.vc.ru/achievements/share/4601777"},{"title":"3 года на vc.ru","code":"registration_3_years","description":"Провёл 3 года вместе с vc.ru. Получена 23 июля 2025.","previewUuid":"d9d72ac5-bcb5-55e0-8c72-b99251e5cdd9","formats":{"glb":"https://static.vc.ru/achievements/shark.glb","usdz":"https://static.vc.ru/achievements/shark.usdz"},"viewData":{"contentColor":"#8E6F09","textMaxWidth":0.66796875,"textX":0.5205078125,"textY":0.341796875,"logoX":0.5205078125,"logoY":0.4609375,"logoXNoText":0.5,"logoYNoText":0.3662109375},"id":977690,"userId":836601,"count":0,"shareImage":"https://api.vc.ru/achievements/share/977690"}],"lastModificationDate":1764917665,"isSubscribed":false,"isSubscribedToNewPosts":false,"isMuted":false,"isAvailableForMessenger":true,"badgeId":null,"isDonationsEnabled":false,"isPlusGiftEnabled":true,"isUnverifiedBlogForCompanyWithoutPro":false,"isRemovedByUserRequest":false,"isFrozen":false,"isDisabledAd":false,"isPlus":false,"isVerified":false,"isPro":false,"yandexMetricaId":null,"badge":null,"isOnline":false,"tgChannelShortname":null,"isUnsubscribable":true,"type":1,"subtype":"personal_blog"},"reactions":{"counters":[],"reactionId":0},"isNews":false,"source":null,"clusters":[],"donations":{"amount":0,"isDonated":false},"commentsSeenCount":null,"keywords":["commands","connect","вот"],"media":null,"customCover":null,"robotsTag":null,"categories":[],"isAnonymized":true}};