import discord import asyncio bots_info = { 'TOKEN_1': {'CHANNEL_ID': 'CHANNEL_ID_1'}, 'TOKEN_2': {'CHANNEL_ID': 'CHANNEL_ID_2'}, } async def send_owo_message(channel): await channel.send("Owo daily") async def send_owo_response(channel, author_mention): await asyncio.sleep(10) await channel.send(f"owo send @nickin") async def start_bots(): for token, bot_info in bots_info.items(): client = discord.Client() @client.event async def on_ready(): print(f'Logged in as {client.user} for token {token}') await asyncio.sleep(10) channel = client.get_channel(int(bot_info['CHANNEL_ID'])) await send_owo_message(channel) @client.event async def on_message(message): if message.author == client.user: return if message.content.lower() == 'owo daily': await send_owo_response(message.channel, message.author.mention) await client.start(token) async def main(): await start_bots() if __name__ == "__main__": loop = asyncio.get_event_loop() loop.run_until_complete(main())