ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Simple Customizable Discord Bot!

Автор: Patch Games

Загружено: 2025-06-10

Просмотров: 807

Описание: Make your own customizable Discord bot in under a minute! 🔧
Perfect for beginners — no experience needed.
Control messages, add commands, and more!

My Patreon:
https://patreon.com/PatchGames?utm_me...

✨ Full code in the description.
👍 Like & sub for more cool Python + Discord projects!

#discordbot #pythonshorts #coding #discord #botdev #programming #pythonproject #techshorts #codingshorts #discordbots

Code:

import discord
from discord.ext import commands
import logging
from dotenv import load_dotenv
import os

load_dotenv()
token = os.getenv('DISCORD_TOKEN')

handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
intents = discord.Intents.default()
intents.message_content = True
intents.members = True

bot = commands.Bot(command_prefix='!', intents=intents)
gamer_role = "Gamer"

@bot.event
async def on_ready():
print(f"We are ready to go in, {bot.user.name}")

@bot.event
async def on_member_join(member):
await member.send(f"Welcome to the server, {member.name}!")

@bot.event
async def on_message(message):
if message.author == bot.user:
return

if "s**t" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "f**k" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "d**k" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "c**t" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "n***r" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "c*m" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

if "s**x" in message.content.lower():
await message.delete()
await message.channel.send(f"{message.author.mention}, please refrain from using inappropriate language.")

await bot.process_commands(message)

@bot.command()
async def hello(ctx):
await ctx.send(f"Hello, {ctx.author.mention}!")

@bot.command()
async def Gamer(ctx):
role1 = discord.utils.get(ctx.guild.roles, name=gamer_role)
if role1:
await ctx.author.add_roles(role1)
await ctx.send(f"{ctx.author.mention}, you have been given the {gamer_role} role! and fuck off connor!")
else:
await ctx.send("Role doesn't exist.")

@bot.command()
async def GamerRemove(ctx):
role1 = discord.utils.get(ctx.guild.roles, name=gamer_role)
if role1:
await ctx.author.remove_roles(role1)
await ctx.send(f"{ctx.author.mention}, you removed the {gamer_role} role!")
else:
await ctx.send("Role not found.")

@bot.command()
@commands.has_role(gamer_role)
async def secret(ctx):
await ctx.send("Welcome to the Gamer club!")

@secret.error
async def secret_error(ctx, error):
if isinstance(error, commands.MissingRole):
await ctx.send("You do not have access!")

bot.run(token, log_handler=handler, log_level=logging.DEBUG)

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Simple Customizable Discord Bot!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Можно ли поменять родину так быстро? / вДудь

Можно ли поменять родину так быстро? / вДудь

Simple Discord bot to moderate and give roles.

Simple Discord bot to moderate and give roles.

США вступили в войну / Ядерные объекты атакованы

США вступили в войну / Ядерные объекты атакованы

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

4к Relaxing Coding Screensaver Encrypted Programming Code Video VJ Loop no sound, no music

4к Relaxing Coding Screensaver Encrypted Programming Code Video VJ Loop no sound, no music

Comedy Club: Борьба с тарелочницами | Екатерина Шкуро, Никита Никитин @ComedyClubRussia

Comedy Club: Борьба с тарелочницами | Екатерина Шкуро, Никита Никитин @ComedyClubRussia

Как запоминать ВСЕ с помощью Obsidian.md и Zettelkasten

Как запоминать ВСЕ с помощью Obsidian.md и Zettelkasten

Трамп ударил. Иран сдается?

Трамп ударил. Иран сдается?

Пассивный доход: Как я начал дропшиппинг с нуля

Пассивный доход: Как я начал дропшиппинг с нуля

Сети для несетевиков // OSI/ISO, IP и MAC, NAT, TCP и UDP, DNS

Сети для несетевиков // OSI/ISO, IP и MAC, NAT, TCP и UDP, DNS

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]