Created
July 24, 2016 00:20
-
-
Save dword4/3e0d38421cf81822af18d698adc3e709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@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