Skip to content

Instantly share code, notes, and snippets.

@dword4
Created July 24, 2016 00:20
Show Gist options
  • Save dword4/3e0d38421cf81822af18d698adc3e709 to your computer and use it in GitHub Desktop.
Save dword4/3e0d38421cf81822af18d698adc3e709 to your computer and use it in GitHub Desktop.
#@module.commands('lasttopic')
def last_topic(bot, trigger):
channel_list = []
conn_channels = bot.privileges
for channel in conn_channels:
if channel not in channel_list:
channel_list.append(channel)
for chan in channel_list:
if chan == '#t3st':
#bot.reply(bot.channels[chan].topic);
last_topic = bot.channels[chan].topic
bot.reply("last topic:" +last_topic);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment