This repository has been archived by the owner on Apr 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Liamraystanley edited this page Apr 6, 2013
·
10 revisions
Code is a python IRC bot maintained and developed by Liam Stanley.
How to create a module of your own for Code
- .beats - Returns the current internet time
- .bytes <str> - Return the byte representation of <str>.
- .u <regexp> - Search for a particular Unicode codepoint.
- .ety <word> - Return a word's etymology.
- .search <query> - Google for <query> and return the top result.
- .calc <query> - Return the Frink calc for <query>.
- .gc <query> - Return the Googlecount for <query>.
- .head <URI> - Perform an HTTP HEAD on URI.
- Code: "<phrase>"? - Translate <phrase>
- tell <nick> <blargh> - I'll remind nick about blargh.
- .seen <nick> - Reports when <nick> was last seen.
- .t <timezone> - Returns the current time
- .tock - Return the time from the USNO Master Clock.
- .val <URI> - Validate <URI> using validator.w3.org.
- .w <word> - Returns the definition of <word>.
- .weather <ICAO> - Show the weather at airport with the code <ICAO> or <ZIP> code.
- .wiki <term> - Return information about <term> from Wikipedia. (.wik also works too!)
- .suggest <search query> - Provides "Google Suggest" of provided query.
- .search <search query> - Provides the first link from a DuckDuckGo search. (.duck works too!)
- .bing <search query> - Provides the first result from a Bing search.
- .google <search query> - Provides the first result from Google.
- .join <channel> - Join the provided channel. (admin only)
- .msg <channel|nick> <message> - Message a given channel or nick a given message. (admin only)
- .quit - Disconnect from the network. (owner only)
- .me <channel|nick> <message> - Do a /me to a given nick or channel. (admin only)
- .lmgfty <search query> - provides a link to a Let Me Google That For You response to noobs.
- .ask - Ask Code a yes or no question, and she'll respond randomly with yes or no. Also if you give her a list of items separated by ' or ' she'll randomly choose one of them.
- .q - Randomly displays a quote.
- .why - Randomly display a sentence that tries to explain 'why'.
- .blocks - Allow manipulation of the blocklist. (You can block people from using Code on a nick and/or hostmask basis)
- .nws - Query NOAA for warnings, watches or advisories for a given ZIP code or county, state pair.
- .fw <ZIP> - displays results from thefuckingweather.com
- .fw city, state - displays results from thefuckingweather.com
- .imdb or .movie <film name> - displays information from IMDB about a given film.
- .rand <num> <num> - randomly picks a number between the two points. One number can be provided and Code will assume the other bound is 0.
- .tell or .to <person> <message> - relays a message to a person the next time they say something anywhere Code is present.
- .help <function_name> - displays help information if a function name is provided from the list returned by .commands
- .sc - displays the `supercombiner.
- .tld <top level domain> - displays a description of information about a given Top Level Domain including whether it supports IDN, DNSSEC, and SLD.
- .countdown <YYYY> <MM> <DD> - displays the time difference between now and a given date at 00:00Z
- .twitter <UID/Username> - displays a tweet provided a given UID or Username. For example: ".twitter 302123537890693120" will return the tweet, "Warren Buffett and Brazilian investor to buy Heinz for $28 billion: http://on.cnn.com/UjzpNK" from this address, https://twitter.com/CNN/status/302123537890693120.
- .write <command> - Code will send a raw IRC command to the server (owner only) type literally type out "x01" and it will be replaced as the unprintable character.
- there are more, that just haven't been documented.
ai.py, is a bit more involved because it don't specifically have a "command" that triggers it. ai.py - This is the "artificial intelligence module." This module tries to provide some interaction with Code. If you want a bot that only responds when spoken to, you might want to disable this module or just delete it.
If you give Code OP status she can moderate the channel as far as giving people voice and op status. As of the current set up only the admin listed in Code can give OP status to other people.
- .voiceme - Gives the user + voice
- .devoiceme - Removes voice for current user.
- .voice <user> - Gives "user" voice (only used for admin).
- .opme - Gives OP status to who requests it. (only works for admin).
- .op <user> - Gives OP status to "user". (only works for admin).