Hoaas / Supybot-plugins

Supybot plugins I have made and/or modified.
8 stars 6 forks source link

LastFM: 21:32:00 <@Tessu> Error: NameError: global name 'irc' is not defined #11

Open Mikaela opened 10 years ago

Mikaela commented 10 years ago
CRITICAL 2014-05-20T21:34:25 supybot lfm
INFO 2014-05-20T21:34:28 supybot lastfm called on ##Mkaysi by "Mikaela!mkaysi@unaffiliated/mikaela".
ERROR 2014-05-20T21:34:28 supybot Uncaught exception in ['lastfm'].
Traceback (most recent call last):
  File "/home/users/mkaysi/.local/lib/python2.7/site-packages/supybot/callbacks.py", line 1267, in _callCommand
    self.callCommand(command, irc, msg, *args, **kwargs)
  File "/home/users/mkaysi/.local/lib/python2.7/site-packages/supybot/utils/python.py", line 91, in g
    f(self, *args, **kwargs)
  File "/home/users/mkaysi/.local/lib/python2.7/site-packages/supybot/callbacks.py", line 1248, in callCommand
    method(irc, msg, *args, **kwargs)
  File "/home/users/mkaysi/.local/lib/python2.7/site-packages/supybot/commands.py", line 1076, in newf
    f(self, irc, msg, args, *state.args, **state.kwargs)
  File "/home/users/mkaysi/Tessu/plugins/LastFM/plugin.py", line 173, in lastfm
    reply = self.last_played(user, plays=notags)
  File "/home/users/mkaysi/Tessu/plugins/LastFM/plugin.py", line 179, in last_played
    self.set_apikey()
  File "/home/users/mkaysi/Tessu/plugins/LastFM/plugin.py", line 152, in set_apikey
    irc.reply("API key not set. see 'config help supybot.plugins.LastFM.apikey'.")
NameError: global name 'irc' is not defined
ERROR 2014-05-20T21:34:28 supybot Exception id: 0x1d639
INFO 2014-05-20T21:34:32 supybot logmark called on ##Mkaysi by "Mikaela!mkaysi@unaffiliated/mikaela".
CRITICAL 2014-05-20T21:34:32 supybot elfm
Mikaela commented 10 years ago

21:35:36 @Tessu The current (running) version of this Supybot is 0.83.4.1+limnoria 2014.05.20, running on Python 2.7.6 (default, May 17 2014, 12:03:36) [GCC 4.7.2]. The newest versions available online are 2014.05.20 (in testing), 2014.05.08 (in master).