import discord, random from discord.ext import commands import responses # type: ignore prefix = "Karle " client = commands.Bot(command_prefix=prefix, intents=discord.Intents.all()) # # ############################################################################bot login @client.event async def on_ready(): print(f"[ONREADY ] logged in as: {client.user}") #myloop.start() # # ############################################################################ on message event @client.event async def on_message(message): #reply chance if message.author != client.user and message.content.startswith(prefix) == False and random.randint(1,1) == random.randint(1,1): odpoved = responses.response_generator(message.content) if odpoved != None: await message.reply(odpoved) await client.process_commands(message) # # ############################################################################pomoc command "Karle pomoc" @client.command() async def pomoc(ctx): await ctx.send("susik") TOKEN = open("config/token.txt", 'r').read() client.run(TOKEN)