--- title: Command listing for lurk (IRC bot) layout: default --- # lurk (the IRC bot)'s commands All commands are prefixed with a `.`. *Do .help \ for more info* ## Calculations and conversions These commands do not require any permissions. | Command | Description | Syntax | Works on Discord and Matrix | | ------------- | ----------- | ------ | --------------------------- | | **c**, calc | Calculates an expression. | .c `5 + 5` | Yes | | **cur** | Gets the exchange rate for a currency. | .cur `5` `USD` in `EUR` | Yes | | **length** | Converts between units of length. | .length `100mm` | Yes | | **py**, py3 | Runs Python3 code. | .py \ | Yes | | **py2** | Runs Python2 code. | .py2 \ | Yes | | **temp** | Converts between units of temperature. | .temp `100K` | Yes | | **weight** | Converts between units of weight. | .weight `5oz` | Yes | ## Channel administration These commands require you have at least halfops in the channel. These commands only work on IRC. | Command | Description | Syntax | | ------------- | ----------- | ------ | | **ban** | Bans a user from the channel. | .ban \ | | **kick** | Kick a user from the channel. | .kick \ [reason] | | **mute**, quiet | Mutes a user on the channel. | .mute \ | | **tmask** | Set the topic mask for the channel, for use with *.topic*. | .tmask \ | | **topic** | Changes the topic of the channel. | .topic \ | | **showmask** | Shows the current topic mask. | .showmask | | **unban** | Unbans a user from the channel. | .unban \ | | **unmute**, unquiet | Unmutes a user on the channel. | .unmute \ | ## Fun and games These commands are fun to use and abuse™! | Command | Description | Syntax | Works on Discord and Matrix | | ------------- | ----------- | ------ | --------------------------- | | **fortune** | Tells you a fortune from the UNIX `fortune` command. | .fortune | Yes | | **lurk!** | Replies to you. Do not prefix this command with a `.`. | lurk! | Yes | | **r**, roulette | Play roulette: There is a 1 in 6 chance you will get hit. | .r | Yes | | **rate** | Puts a rating into chat. | .rate \ \ | Yes | | **slap**, shoot, whack, hit | Slaps a user. | .slap [user [object]] | Yes | | **yay** | Yay! This command may be used with the `.` prefix, however it is optional. | Yay! | Yes | | **qotd** | Displays a quote of the day. *Quotes of the day can be sarcastic and/or offensive, read at your own risk.* | .qotd | Yes | | **cal**, calendar | Displays a calendar for the current month. | .cal | Yes | | **whip** | Whip | .whip | Yes | ## Miscellaneous commands Useful commands that do not fit into any other categories. | Command | Description | Syntax | Works on Discord and Matrix | | ------------- | ----------- | ------ | --------------------------- | | **!** | A prefix for DuckDuckGo! bangs. Do .! to see a list of subcommands. | .!ddg ubuntu | No | | **ping** | Pings the bot. | .ping | Yes | | **privs**, privileges | Shows your privileges. | .privs [hostmask] | No | | **tell**, ask | Tells/asks a user something. | .tell \ \ | No | | **whoami** | Tells you who the bot thinks you are. | .whoami | Yes but useless | ## Random numbers | Command | Description | Syntax | Works on Discord and Matrix | | ------------- | ----------- | ------ | --------------------------- | | **d**, dice | Rolls dice. | .d \d\ | Yes | | **choose** | Chooses between a set of options. | .choice \