Implementing r.d dice rolling.
This commit is contained in:
parent
cb42aac634
commit
47440a1eac
8
Makefile
8
Makefile
@ -1,7 +1,7 @@
|
|||||||
raven.mono: /usr/bin/mcs /usr/bin/mono clean ./raven.csharp ./connection.csharp ./ravencommand.csharp /bin/bash /usr/bin/mail /usr/bin/wget
|
raven.mono: /usr/bin/mcs /usr/bin/mono clean ./raven.csharp ./connection.csharp ./ravencommand.csharp /bin/bash /usr/bin/mail /usr/bin/wget
|
||||||
mkdir -p /usr/local/etc/TheRaven
|
mkdir -p /usr/local/etc/TheRaven
|
||||||
mcs -out:raven.mono reportmessage.csharp *exception.csharp irc*message.csharp connection.csharp raven*.csharp
|
mcs -out:raven.mono reportmessage.csharp *exception.csharp irc*message.csharp connection.csharp raven*.csharp
|
||||||
id raven || useradd -M -G bzr,ircd,api raven
|
id raven || useradd -M -G git,ircd,api raven
|
||||||
id raven || usermod -d /usr/local/etc/TheRaven raven
|
id raven || usermod -d /usr/local/etc/TheRaven raven
|
||||||
chown raven:raven /usr/local/etc/TheRaven
|
chown raven:raven /usr/local/etc/TheRaven
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ edit:
|
|||||||
emacs -nw raven.csharp
|
emacs -nw raven.csharp
|
||||||
|
|
||||||
test: raven.mono
|
test: raven.mono
|
||||||
su raven -c 'script -c "mono ./raven.mono -c /usr/local/etc/TheRaven-Test -v" /tmp/raven-test.log'
|
script -c "mono ./raven.mono -c /usr/local/etc/TheRaven-Test -v" /tmp/raven-test.log
|
||||||
|
|
||||||
check-for-verbosity:
|
check-for-verbosity:
|
||||||
grep Console.WriteLine *.csharp | egrep -v 'verbosity|raven.csharp'; echo
|
grep Console.WriteLine *.csharp | egrep -v 'verbosity|raven.csharp'; echo
|
||||||
@ -30,7 +30,3 @@ install: raven.mono
|
|||||||
/usr/bin/bash make-conf-dir.bash /usr/local/etc/TheRaven
|
/usr/bin/bash make-conf-dir.bash /usr/local/etc/TheRaven
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable raven
|
systemctl enable raven
|
||||||
|
|
||||||
commit: /usr/bin/bzr
|
|
||||||
bzr commit
|
|
||||||
chown -R raven:bzr .bzr
|
|
||||||
|
3
README
3
README
@ -1 +1,2 @@
|
|||||||
This is a readme.
|
This project is enabled for AniNIX::Bazaar. You can check it out remotely with the bzr package.
|
||||||
|
Project URL is bzr://bazaar.aninix.net/TheRaven
|
||||||
|
@ -50,6 +50,19 @@ namespace AniNIX.TheRaven {
|
|||||||
}
|
}
|
||||||
connection.Write(send);
|
connection.Write(send);
|
||||||
return;
|
return;
|
||||||
|
case "r.d":
|
||||||
|
if (bySpace.Length < 2) {
|
||||||
|
send.PrivMsg(theRaven.helpText,incoming.user);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
int result = theRaven.randomSeed.Next(Int32.Parse(bySpace[1]));
|
||||||
|
send.PrivMsg(String.Format("{0}",result+1),incoming.target);
|
||||||
|
} catch (Exception e) {
|
||||||
|
send.PrivMsg("Bad formatting.",incoming.target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
connection.Write(send);
|
||||||
|
return;
|
||||||
case "r.tinyurl":
|
case "r.tinyurl":
|
||||||
if (bySpace.Length < 2) {
|
if (bySpace.Length < 2) {
|
||||||
send.PrivMsg(theRaven.helpText,incoming.user);
|
send.PrivMsg(theRaven.helpText,incoming.user);
|
||||||
|
Loading…
Reference in New Issue
Block a user