upgrade irctokens

This commit is contained in:
Ben Harris 2020-03-12 01:07:10 -04:00
parent b61f5c4321
commit a0306cdb4c
2 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,3 @@
Mastodon.py==1.5.0
emoji==0.5.4
irctokens==0.5.1
irctokens==0.7.0

View File

@ -34,9 +34,8 @@ def send(chan, msg):
def think(line):
chan = line.params.pop(0)
words = line.params[0].split(" ")
nick = irctokens.Hostmask(line.source).nickname
if len(words) > 0 and nick != botnick:
if len(words) > 0 and irctokens.hostmask.nickname != botnick:
if words[0] == "!toot":
status = emoji.emojize(" ".join(words[1:]), use_aliases=True)
print(f"{status} posted by {nick}")