A command-line bot which can do a lot of things!
From PyPI:
$ pip install helper-bot
To generate a random number, use the randint
command:
$ randint 1 100
48
It takes two arguments:
a
- the minimum value of the random numberb
- the maximum value of the random number
To evaluate a Python expression, use the output
command:
$ output '"abc"*3'
abcabcabc
Note: the expression must be in quotes, ""
or ''
It takes one argument:
exp
: the expression to evaluate and output
For safety reasons, the following methods are unsupported:
__import__
eval
exec
open
An error will be raised if one of these is used.
To get the current time in any timezone, use the timein
command:
$ timein "US/Eastern"
17/09/2022 08:08:14 EDT -0400
It takes one argument:
tz
: the timezone to output the time in