From f3b623538b39264fc537b37c4bd5fc7c58cfe5c2 Mon Sep 17 00:00:00 2001 From: xpamych Date: Fri, 10 Mar 2023 17:26:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D0=BE=D1=82=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B1=D0=BE=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna_discord_bot.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hlna_discord_bot.py diff --git a/hlna_discord_bot.py b/hlna_discord_bot.py new file mode 100644 index 0000000..9bf4839 --- /dev/null +++ b/hlna_discord_bot.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +import discord +from discord.ext import commands + +config = { + 'token': 'your-token', + 'prefix': 'prefix', +} + +bot = commands.Bot(command_prefix=config['prefix']) + + +@bot.event +async def on_message(ctx): + if ctx.author != bot.user: + await ctx.reply(ctx.content) + +bot.run(config['token'])