cslbot.commands package

Submodules

cslbot.commands.8ball module

cslbot.commands.8ball.cmd(send, msg, args)[source]

Asks the Magic 8-Ball a question. Syntax: {command} <question>

cslbot.commands.about module

cslbot.commands.about.cmd(send, _, args)[source]

Returns info about the bot. Syntax: {command}

cslbot.commands.abuse module

cslbot.commands.abuse.cmd(send, msg, args)[source]

Shows or clears the abuse list Syntax: {command} <–clear|–show>

cslbot.commands.acronym module

cslbot.commands.acronym.cmd(send, msg, _)[source]

Generates a meaning for the specified acronym. Syntax: {command} <acronym>

cslbot.commands.acronym.get_list()[source]

cslbot.commands.active module

cslbot.commands.active.cmd(send, _, args)[source]

Returns stats on the active users. Syntax: {command}

cslbot.commands.admins module

cslbot.commands.admins.cmd(send, _, args)[source]

Returns a list of admins. V = Verified (authed to NickServ), U = Unverified. Syntax: {command}

cslbot.commands.babble module

cslbot.commands.babble.build_msg(cursor, speaker, length, start)[source]
cslbot.commands.babble.cmd(send, msg, args)[source]

Babbles like a user Syntax: {command} [nick] [–length <1|2>] [–start <word>]

cslbot.commands.babble.weighted_next(data)[source]

cslbot.commands.bard module

cslbot.commands.bard.cmd(send, msg, _)[source]

Translates something into Shakespearese. Syntax: {command} <something>

cslbot.commands.bc module

cslbot.commands.bc.cmd(send, msg, args)[source]

Evaluates mathmatical expressions. Syntax: {command} <expression>

cslbot.commands.bc.get_scores(cursor)[source]

cslbot.commands.bike module

cslbot.commands.bike.cmd(send, *_)[source]

I’ve got a bike, you can ride it if you like. It’s got a basket, a bell that rings and things to make it look good. I’d give it to you if I could but I borrowed it. Syntax: {command}

cslbot.commands.blame module

cslbot.commands.blame.cmd(send, msg, args)[source]

Blames a random user for something. Syntax: {command} [reason]

cslbot.commands.botsnack module

cslbot.commands.botsnack.cmd(send, msg, args)[source]

Causes the bot to snack on something. Syntax: {command} [object]

cslbot.commands.botspam module

cslbot.commands.botspam.cmd(send, _, args)[source]

Abuses the bot. Syntax: {command}

cslbot.commands.botspam.gen_fortune(send)[source]
cslbot.commands.botspam.gen_urban(send, session, key)[source]

cslbot.commands.cadmin module

cslbot.commands.cadmin.cmd(send, msg, args)[source]

Clears the verified admin list Syntax: {command}

cslbot.commands.cancel module

cslbot.commands.cancel.cmd(send, msg, args)[source]

Cancels a deferred action with the given id. Syntax: {command} <id>

cslbot.commands.channels module

cslbot.commands.channels.cmd(send, _, args)[source]

Returns a listing of the current channels. Syntax: {command}

cslbot.commands.choose module

cslbot.commands.choose.cmd(send, msg, args)[source]

Chooses between multiple choices. Syntax: {command} <object> or <object> (or <object>...)

cslbot.commands.cidr module

cslbot.commands.cidr.cmd(send, msg, args)[source]

Gets a CIDR range. Syntax: {command} <range>

cslbot.commands.coin module

cslbot.commands.coin.cmd(send, msg, _)[source]

Flips a coin a number of times. Syntax: {command} [number]

cslbot.commands.cve module

cslbot.commands.cve.cmd(send, msg, args)[source]

Gets info on a CVE id from MITRE’s CVE database Syntax: {command} <cveid>

cslbot.commands.ddate module

cslbot.commands.ddate.cmd(send, *_)[source]

Returns the Discordian date. Syntax: {command}

cslbot.commands.defersay module

cslbot.commands.defersay.cmd(send, msg, args)[source]

Says something at a later time. Syntax: {command} <delay> <msg>

cslbot.commands.define module

cslbot.commands.define.cmd(send, msg, args)[source]

Gets the definition of a word. Syntax: {command} [–entry <num>] <word>

cslbot.commands.define.get_def(entry, word, key)[source]
cslbot.commands.define.strip_colon(msg)[source]

cslbot.commands.demorse module

cslbot.commands.demorse.cmd(send, msg, _)[source]

Converts morse to ascii. Syntax: {command} <text>

cslbot.commands.distro module

cslbot.commands.distro.cmd(send, *_)[source]

Gets a random distro. Syntax: {command}

cslbot.commands.dvorak module

cslbot.commands.dvorak.cmd(send, msg, args)[source]

Converts a message to/from dvorak. Syntax: {command} <–nick <nick>|msg>

cslbot.commands.dvorak.get_log(conn, user, target)[source]
cslbot.commands.dvorak.translate(msg, encode=True)[source]

cslbot.commands.ebay module

cslbot.commands.ebay.cmd(send, _, args)[source]

Implements xkcd 576. Syntax: {command}

cslbot.commands.ebay.get_categories(apikey)[source]
cslbot.commands.ebay.get_item(category, apikey)[source]

cslbot.commands.eix module

cslbot.commands.eix.cmd(send, msg, args)[source]

Runs eix with the given arguments. Syntax: {command} <package>

cslbot.commands.errno module

cslbot.commands.errno.cmd(send, msg, _)[source]

Return either a random value or the specified one from errno.h. Syntax: {command} <errorcode|list>

cslbot.commands.filter module

cslbot.commands.filter.cmd(send, msg, args)[source]

Changes the output filter. Syntax: {command} [–channel channel] <filter|–show|–list|–reset|–chain filter,[filter2,...]>

cslbot.commands.filter.get_filters(handler, target)[source]

cslbot.commands.fml module

cslbot.commands.fml.cmd(send, msg, args)[source]

Gets a random FML post. Syntax: {command}

cslbot.commands.fortune module

cslbot.commands.fortune.cmd(send, msg, args)[source]

Returns a fortune. Syntax: {command} <list|[-a|-o] [module]>

cslbot.commands.fweather module

cslbot.commands.fweather.cmd(send, msg, _)[source]

Gets the F***ING weather! Syntax: {command} <location>

cslbot.commands.gcc module

cslbot.commands.gcc.cmd(send, msg, args)[source]

Compiles stuff. Syntax: {command} <code>

cslbot.commands.gizoogle module

cslbot.commands.gizoogle.cmd(send, msg, args)[source]

Translates something into gangsta. Syntax: {command} <something>

cslbot.commands.google module

cslbot.commands.google.cmd(send, msg, args)[source]

Googles something. Syntax: {command} <term>

cslbot.commands.grep module

cslbot.commands.grep.cmd(send, msg, args)[source]

Greps the log for a string. Syntax: {command} [–nick <nick>] [–ignore-case/-i] <string>

cslbot.commands.guarded module

cslbot.commands.guarded.cmd(send, _, args)[source]

Shows the currently guarded nicks. Syntax: {command}

cslbot.commands.help module

cslbot.commands.help.cmd(send, msg, args)[source]

Gives help. Syntax: {command} [command]

cslbot.commands.highlight module

cslbot.commands.highlight.cmd(send, msg, args)[source]

When a nick was last pinged. Syntax: {command} [–channel #channel] [nick]

cslbot.commands.hooks module

cslbot.commands.hooks.cmd(send, *_)[source]

Lists loaded hooks Syntax: {command}

cslbot.commands.ignore module

cslbot.commands.ignore.cmd(send, msg, args)[source]

Handles ignoring/unignoring people Syntax: {command} <–clear|–show/–list|–delete|nick>

cslbot.commands.imdb module

cslbot.commands.imdb.cmd(send, msg, args)[source]

Gets a random movie. Syntax: {command}

cslbot.commands.inspect module

cslbot.commands.inspect.cmd(send, msg, args)[source]

‘Inspects a bot attribute. Syntax: {command} <attr>

cslbot.commands.insult module

cslbot.commands.insult.cmd(send, msg, args)[source]

Insults a user. Syntax: {command} [nick]

cslbot.commands.ipa module

cslbot.commands.ipa.cmd(send, msg, args)[source]

Converts text into NATO form. Syntax: {command} <text>

cslbot.commands.ipa.gen_nato(msg)[source]

cslbot.commands.issue module

cslbot.commands.issue.cmd(send, msg, args)[source]

Files a github issue or gets a open one. Syntax: {command} <title [–desc description]|–get <number>>

cslbot.commands.isup module

cslbot.commands.isup.cmd(send, msg, args)[source]

Checks if a website is up. Syntax: {command} <website>

cslbot.commands.jargon module

cslbot.commands.jargon.cmd(send, *_)[source]

Causes the bot to generate some jargon. Syntax: {command}

cslbot.commands.join module

cslbot.commands.join.cmd(send, msg, args)[source]

Orders the bot to join a channel Syntax: {command} <channel> [channel] ...

cslbot.commands.kill module

cslbot.commands.kill.cmd(send, msg, args)[source]

Kills somebody. Syntax: {command} <victim>

cslbot.commands.line module

cslbot.commands.line.cmd(send, msg, args)[source]

Returns a random line from $nick. Syntax: {command} (–channel <channel>) (nick)

cslbot.commands.lmgtfy module

cslbot.commands.lmgtfy.cmd(send, msg, args)[source]

Explain things. Syntax: {command} <text>

cslbot.commands.man module

cslbot.commands.man.cmd(send, msg, args)[source]

Gets a man page. Syntax: {command} [section] <command>

cslbot.commands.metar module

cslbot.commands.metar.cmd(send, msg, args)[source]

Gets the weather. Syntax: {command} <station> [station2...]

cslbot.commands.microwave module

cslbot.commands.microwave.cmd(send, msg, args)[source]

Microwaves something. Syntax: {command} <level> <target>

cslbot.commands.mission module

cslbot.commands.mission.cmd(send, *_)[source]

Announces the mission. Syntax: {command}

cslbot.commands.mode module

cslbot.commands.mode.cmd(send, msg, args)[source]

Sets a mode. Syntax: {command} [–chan <chan>] <mode>

cslbot.commands.morse module

cslbot.commands.morse.cmd(send, msg, args)[source]

Converts text to morse code. Syntax: {command} [text]

cslbot.commands.msg module

cslbot.commands.msg.cmd(send, msg, args)[source]

Sends a message to a channel Syntax: {command} <channel> <message>

cslbot.commands.nicks module

cslbot.commands.nicks.cmd(send, msg, args)[source]

Gets previous nicks. Syntax: {command} <nick>

cslbot.commands.note module

cslbot.commands.note.cmd(send, msg, args)[source]

Leaves a note for a user or users. Syntax: {command} <nick>[,nick2,...] <note>

cslbot.commands.nuke module

cslbot.commands.nuke.cmd(send, msg, args)[source]

Nukes somebody. Syntax: {command} <target>

cslbot.commands.part module

cslbot.commands.part.cmd(send, msg, args)[source]

Orders the bot to leave a channel Syntax: {command} <channel>

cslbot.commands.pester module

cslbot.commands.pester.cmd(send, msg, args)[source]

Pesters somebody. Syntax: {command} <nick> <message>

cslbot.commands.ping module

cslbot.commands.ping.cmd(send, msg, args)[source]

Ping something. Syntax: {command} <target>

cslbot.commands.praise module

cslbot.commands.praise.cmd(send, msg, _)[source]

Praises something. Syntax: {command} <something>

cslbot.commands.pull module

cslbot.commands.pull.cmd(send, _, args)[source]

Pull changes. Syntax: {command} <branch>

cslbot.commands.quit module

cslbot.commands.quit.cmd(send, msg, args)[source]

Makes the bot disconnect and shut off Syntax: {command}

cslbot.commands.quote module

cslbot.commands.quote.cmd(send, msg, args)[source]

Handles quotes. Syntax: {command} <number|nick>, !quote –add <quote> –nick <nick> (–approve), !quote –list, !quote –delete <number>, !quote –edit <number> <quote> –nick <nick> !quote –search (–offset <num>) <number>

cslbot.commands.quote.do_add_quote(nick, quote, session, isadmin, approve, send, args)[source]
cslbot.commands.quote.do_delete_quote(args, session, qid)[source]
cslbot.commands.quote.do_get_quote(session, qid=None)[source]
cslbot.commands.quote.do_list_quotes(session, quote_url)[source]
cslbot.commands.quote.do_update_quote(session, qid, nick, quote)[source]
cslbot.commands.quote.get_quotes_nick(session, nick)[source]
cslbot.commands.quote.search_quote(session, offset, search)[source]

cslbot.commands.random module

cslbot.commands.random.cmd(send, msg, args)[source]

For when you don’t have enough randomness in your life. Syntax: {command} [–int] [len]

cslbot.commands.random.getrandbits(k) → x. Generates an int with k random bits.

cslbot.commands.randtranslate module

cslbot.commands.randtranslate.cmd(send, msg, args)[source]

Translate something into a random language Syntax: {command} <text>

cslbot.commands.reddit module

cslbot.commands.reddit.cmd(send, msg, args)[source]

Gets a random Reddit post. Syntax: {command} [subreddit]

cslbot.commands.roman module

cslbot.commands.roman.cmd(send, msg, _)[source]

Convert a number to the roman numeral equivalent. Syntax: {command} [number]

cslbot.commands.roman.gen_roman(num)[source]

cslbot.commands.s module

cslbot.commands.s.cmd(send, msg, args)[source]

Corrects a previous message. Syntax: {command}/<msg>/<replacement>/<ig|nick>

cslbot.commands.s.do_replace(log, config, char, regex, replacement)[source]
cslbot.commands.s.get_log(conn, target, user)[source]
cslbot.commands.s.get_modifiers(msg, nick, nickregex)[source]

cslbot.commands.score module

cslbot.commands.score.cmd(send, msg, args)[source]

Gets scores. Syntax: {command} <–high|–low|nick>

cslbot.commands.seen module

cslbot.commands.seen.cmd(send, msg, args)[source]

When a nick was last seen. Syntax: {command} <nick>

cslbot.commands.seen.get_last(cursor, cmdchar, ctrlchan, nick)[source]

cslbot.commands.sha512 module

cslbot.commands.sha512.cmd(send, msg, _)[source]

SHA512 hashes something. Syntax: {command} <msg>

cslbot.commands.shibe module

cslbot.commands.shibe.cmd(send, msg, _)[source]

Generates a shibe reaction. Syntax: {command} [topic1]...[topicn]

cslbot.commands.signal module

cslbot.commands.signal.cmd(send, msg, _)[source]

Return either a random value or the specified one from signal.h. Syntax: {command} <signal|list>

cslbot.commands.slap module

cslbot.commands.slap.cmd(send, msg, args)[source]

Slap somebody. Syntax: {command} <nick> [for <reason>]

cslbot.commands.slogan module

cslbot.commands.slogan.cmd(send, msg, _)[source]

Gets a slogan. Syntax: {command} [text]

cslbot.commands.stats module

cslbot.commands.stats.cmd(send, msg, args)[source]

Gets stats. Syntax: {command} <–high|–low|–userhigh|–nick <nick>|command>

cslbot.commands.stats.get_command(session, command, totals)[source]
cslbot.commands.stats.get_command_totals(session)[source]
cslbot.commands.stats.get_nick(session, nick)[source]
cslbot.commands.stats.get_nick_totals(session, command=None)[source]

cslbot.commands.stock module

cslbot.commands.stock.cmd(send, msg, args)[source]

Gets a stock quote. Syntax: {command} [symbol] Powered by markit on demand (http://dev.markitondemand.com)

cslbot.commands.stock.gen_stock(msg)[source]
cslbot.commands.stock.random_stock()[source]

cslbot.commands.stopwatch module

cslbot.commands.stopwatch.cmd(send, msg, args)[source]

Start/stops/resume/get stopwatch Syntax: {command} <start|stop|resume|delete|get|list>

cslbot.commands.stopwatch.create_stopwatch(args)[source]
cslbot.commands.stopwatch.delete_stopwatch(args)[source]
cslbot.commands.stopwatch.get_elapsed(session, sw)[source]
cslbot.commands.stopwatch.get_stopwatch(args)[source]
cslbot.commands.stopwatch.list_stopwatch(args)[source]
cslbot.commands.stopwatch.resume_stopwatch(args)[source]
cslbot.commands.stopwatch.stop_stopwatch(args)[source]

cslbot.commands.summon module

cslbot.commands.summon.cmd(send, msg, args)[source]

Summons a user Syntax: {command} <nick>

cslbot.commands.threads module

cslbot.commands.threads.cmd(send, *_)[source]

Enumerate threads. Syntax: {command}

cslbot.commands.throw module

cslbot.commands.throw.cmd(send, msg, args)[source]

Throw something. Syntax: {command} <object> [at <target>]

cslbot.commands.time module

cslbot.commands.time.cmd(send, msg, _)[source]

Tells the time. Syntax: {command}

cslbot.commands.timeout module

cslbot.commands.timeout.cmd(send, msg, args)[source]

Quiets a user, then unquiets them after the specified period of time. Syntax: {command} <timespec> <nickname> timespec is in the format: <number><unit>, where unit is s, m, h, or d.

cslbot.commands.timeuntil module

cslbot.commands.timeuntil.cmd(send, msg, args)[source]

Reports the difference between now and some specified time. Syntax: {command} <time>

cslbot.commands.tjbash module

cslbot.commands.tjbash.cmd(send, msg, _)[source]

Finds a random quote from tjbash.org given search criteria. Syntax: {command} [searchstring]

cslbot.commands.translate module

cslbot.commands.translate.cmd(send, msg, args)[source]

Translate something. Syntax: {command} [–lang <language code>] <text> See https://msdn.microsoft.com/en-us/library/hh456380.aspx for a list of valid language codes

cslbot.commands.tumblr module

cslbot.commands.tumblr.cmd(send, msg, args)[source]

Searches tumblr Syntax: {command} <blogname> <–submit content|–random>

cslbot.commands.uptime module

cslbot.commands.uptime.cmd(send, _, args)[source]

Shows the bot’s uptime. Syntax: {command}

cslbot.commands.urban module

cslbot.commands.urban.blacklist_word(session, msg)[source]
cslbot.commands.urban.cmd(send, msg, args)[source]

Gets a definition from urban dictionary. Syntax: {command} <[#<num>] <term>|–blacklist (word)|–unblacklist (word)>

cslbot.commands.urban.unblacklist_word(session, msg)[source]

cslbot.commands.version module

cslbot.commands.version.cmd(send, msg, args)[source]

Check the git revison. Syntax: {command} [check|master]

cslbot.commands.vote module

cslbot.commands.vote.cmd(send, msg, args)[source]

Handles voting. Syntax: {command} <start|end|list|tally|edit|delete|retract|reopen|(num) vote>

cslbot.commands.vote.delete_poll(args)[source]

Deletes a poll

cslbot.commands.vote.edit_poll(args)[source]

Edits a poll

cslbot.commands.vote.end_poll(args)[source]

Ends a poll

cslbot.commands.vote.get_open_poll(session, pid)[source]
cslbot.commands.vote.get_response(session, pid, nick)[source]
cslbot.commands.vote.list_polls(args)[source]
cslbot.commands.vote.reopen(args)[source]

reopens a closed poll.

cslbot.commands.vote.retract(args)[source]

Deletes a vote for a poll

cslbot.commands.vote.start_poll(args)[source]

Starts a poll

cslbot.commands.vote.tally_poll(args)[source]

Shows the results of poll

cslbot.commands.vote.vote(session, nick, pid, response)[source]

Votes on a poll

cslbot.commands.wai module

cslbot.commands.wai.cmd(send, *_)[source]

Gives a reason for something. Syntax: {command}

cslbot.commands.weather module

cslbot.commands.weather.cmd(send, msg, args)[source]

Gets the weather. Syntax: {command} <[–date (date)] [–hour (hour)] (location)|–set (default)> Powered by Weather Underground, www.wunderground.com

cslbot.commands.weather.get_default(nick, session, send, config, source)[source]
cslbot.commands.weather.get_forecast(cmdargs, send, apikey)[source]
cslbot.commands.weather.get_hourly(cmdargs, send, apikey)[source]
cslbot.commands.weather.get_weather(cmdargs, send, apikey)[source]
cslbot.commands.weather.set_default(nick, location, session, send, apikey)[source]

Sets nick’s default location to location.

cslbot.commands.weather.valid_location(location, apikey)[source]

cslbot.commands.wiki module

cslbot.commands.wiki.cmd(send, msg, args)[source]

Returns the first wikipedia result for the argument. Syntax: {command} [term]

cslbot.commands.wiki.get_rand(url)[source]

cslbot.commands.wikipath module

cslbot.commands.wikipath.check_article(name)[source]
cslbot.commands.wikipath.cmd(send, msg, args)[source]

Find a path between two wikipedia articles. Syntax: {command} [article] [article]

cslbot.commands.wikipath.gen_path(cmdargs)[source]
cslbot.commands.wikipath.get_article()[source]

cslbot.commands.wolf module

cslbot.commands.wolf.cmd(send, msg, args)[source]

Queries WolframAlpha. Syntax: {command} <expression>

cslbot.commands.word module

cslbot.commands.word.cmd(send, *_)[source]

Gets a random word. Syntax: {command}

cslbot.commands.wtf module

cslbot.commands.wtf.cmd(send, msg, _)[source]

Tells you what acronyms mean. Syntax: {command} <term>

cslbot.commands.xkcd module

cslbot.commands.xkcd.cmd(send, msg, args)[source]

Gets a xkcd comic. Syntax: {command} [num|latest|term]

cslbot.commands.xkcd.get_latest()[source]

cslbot.commands.yoda module

cslbot.commands.yoda.cmd(send, msg, _)[source]

Convert a message to Yoda-speak. Syntax: {command} <msg>

Module contents