hln-a/hlna_discord_bot.py
xpamych cbecbcecda Revert "change if else and fix function servers"
This reverts commit d4eece79e3a7f904a5424a98c68b626c8075ec1a.
2023-05-10 12:23:31 +03:00

19 lines
323 B
Python

#!/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'])