A dumb IRC bot that wishes it had a Lambda Drive.
- Choose Command: When a user types
.c <list>
as a message, ARX-7 will try to randomly select an entry in<list>
. The following formats are recognized:
1-100
: When given a range in this format, a random number within the given range is chosen and returned.0-1.0
: When given a decimal range in a similar format, a random number to the highest level of decimal points passed in as part of the range will be returned. For instance,.c 0-1.0
could return0.8
, while1.000-3.37
could return2.862
.a list, of different, phrases
: When commas are present, ARX-7 will treat them as delimitersa list of words
: When there are no commas present, ARX-7 will use spaces as delimiters
- Order Command: When a user types
.o <list>
as a message, ARX-7 will try to order the contents of<list>
. The following formats are recognized:
1-100
: When given a range in this format, up to twenty random numbers are chosen and returned.a list, of different, phrases
: When commas are present, ARX-7 will treat them as delimitersa list of words
: When there are no commas present, ARX-7 will use spaces as delimiters
- YouTube Command: When a user types
.yt <search string>
as a message, ARX-7 will search YouTube and return the first video it finds with the corresponding<search string>
. - YouTube Link Recognition: When a YouTube link is in a message, ARX-7 will automatically grab some information such as movie title and total views to display in a message.
- Tweet Link Recognition: When a Twitter link is in a message, ARX-7 will automatically grab some information such as tweet contents, username, and display name to display in a message.
- Imgur Link Recognition: When a Imgur link is in a message, ARX-7 will automatically grab some information such as title and total views to display in a message.
- Replies: Although only one is needed, a few silly phrases are present for debug reasons:
Ping
: ARX-7 will respond withpong
bot respond
: ARX-7 will respond withI'm a pretty stupid bot.
bot be nice
: ARX-7 will respond withsorry :(
gj bot
: ARX-7 will respond withthx
thx bot
: ARX-7 will respond withnp
- Time When the user types
.time <timezone>
as a message, ARX-7 will automatically respond with the current time in the specified zone.
$ npm install
$ npm run build
$ npm run arx7
$ npm install
$ npm start
Docker instructions further down.
You'll need to create a config file. Use the .config.json
sample file, configuring as you wish. When you're finished, rename it to config.json
.
Create the config.json
file, then build and run the image:
docker build -ti arx-7 .
docker run --rm -ti arx-7
We hang in #arx-7
on Rizon