# -*- coding: utf-8 -*- from irc3.plugins.cron import cron import irc3 ########################################################################################### ########################################################################################### NICKSERV_USERNAME='not_maple' NICKSERV_PASSWORD='CHANGEYOURPASSWORD' ########################################################################################### ########################################################################################### @irc3.plugin class Plugin: def __init__(self,bot): self.bot=bot ####################################################################################### ####################################################################################### @irc3.event(irc3.rfc.CONNECTED) def connected(self, **kw): MSG=f"identify {NICKSERV_USERNAME} {NICKSERV_PASSWORD}" self.bot.privmsg('NICKSERV',MSG) ####################################################################################### ####################################################################################### ########################################################################################### ########################################################################################### @cron('*/1 * * * *') def cron_auth(bot): if not bot.nick==bot.original_nick: MSG=f"identify {NICKSERV_USERNAME} {NICKSERV_PASSWORD}" bot.privmsg('NICKSERV',MSG) ########################################################################################### ###########################################################################################