min/bot.py
lickthecheese 17009cde7c basic bot
2020-04-05 11:39:50 -04:00

21 lines
452 B
Python
Executable file

#!/usr/bin/env python3
import pydle, asyncio
class Oven(pydle.Client):
async def on_connect(self):
print('Connected!')
await self.join('#bots')
async def on_message(self, chan, source, msg):
if source != self.nickname:
await self.message(chan, ' '.join(await self.whois(source).keys()))
if __name__ == "__main__":
client = Oven('oven', realname='Oven IRC Bot')
client.run('irc.tilde.chat', tls=True, tls_verify=False)