-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
62 lines (51 loc) · 2.39 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
dicebot -- a simple dice rolling irc bot
author: [email protected]
license: public domain, do whatever you want and have fun :)
to build:
1) run "ant" in this directory (see "build.xml" for the gory details)
to run:
1) make dicebot.properties
standard java properties file format
e.g.:
server: irc.example.com
channel: somechannel
nick: dicebot
adminpassword: somepassword
antifloodthreshold: 30
(note, '#' is a comment char, so omit it from
the channel name; dicebot will automatically
prepend '#' to the given channel name)
server, channel and adminpassword are required. if nick is
omitted, "dicebot" will be used. if antifloodthreshold is
omitted, 20 will be used (this is the number such that dice
count over it will be prevented from using verbose rolling).
2) java -jar dicebot.jar
3) commands:
public commands (in a channel:)
!roll XdY[+-Z]
!vroll " " "
will roll X dice of size Y, modifying the total by Z
v(erbose) roll reports each die rolled
!dicehelp
prints a short usage summary
admin commands (in private message:)
(for all, {password} is the admin password specified in
the properties file as discussed above)
!antiflood {integer} password
tells dicebot to set the antiflood threshold to {int}
!join channel password
tells dicebot to join the given channel
!leave channel password
tells dicebot to leave the given channel
!quit password
tells dicebot to disconnect
!op channel user password
directs dicebot to op user {user} in channel {channel}
MISC NOTES:
1) dicebot does support multi-channel usage (either by following invites
or by admin commands), but by default the irc library uses one message
queue per server, and one second per message, so if many users are
sending many rolls (esp. verbose rolls) the single queue may take some
time to clear through hence users might experience some lag before getting
the results they had requested. Figuring out if there's some way to at least
have per-channel queuing is a matter for later research.