Skip to content

Instantly share code, notes, and snippets.

@lbr88
Created February 4, 2017 23:01
Show Gist options
  • Save lbr88/f870c3acc738b784dfabf02a4086fd5c to your computer and use it in GitHub Desktop.
Save lbr88/f870c3acc738b784dfabf02a4086fd5c to your computer and use it in GitHub Desktop.
# -- coding: utf-8 --
#
from sopel import module
@module.require_owner
@module.commands("nick")
def changeNick(bot,trigger):
newnick = trigger.group(2)
bot.nickname = newnick
bot.write(("NICK",), newnick)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment