import discord import asyncio # Sadece kanal kimliği değişecek, token'ları aynı kalacak bots_info = { '1.botuntokeni': {'CHANNEL_ID': 'kanalidsi'}, '2.botuntokeni': {'CHANNEL_ID': 'kanalidsi'}, } 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 @nick 500") 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())