Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
Discord Bot
Commits
04fed2ec
Unverified
Commit
04fed2ec
authored
Apr 19, 2020
by
tec
Browse files
Add a !source commmand to show the bot's forge
parent
64354344
Pipeline
#216
failed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
04fed2ec
...
...
@@ -88,12 +88,11 @@ impl EventHandler for Handler {
"motion"
=>
voting
::
Commands
::
motion
(
ctx
,
msg
.clone
(),
content
),
"poll"
=>
voting
::
Commands
::
poll
(
ctx
,
msg
.clone
(),
content
),
"cowsay"
=>
voting
::
Commands
::
cowsay
(
ctx
,
msg
.clone
(),
content
),
"logreact"
=>
{
e!
(
"Error deleting logreact prompt: {:?}"
,
msg
.delete
(
&
ctx
));
"source"
=>
{
send_message!
(
msg
.channel_id
,
&
ctx
.http
,
"
React to this to log the ID (for the next 5min)
"
"
You want to look at my insides!? Eurgh.
\n
Just kidding, you can go over every inch of me here: https://gitlab.ucc.asn.au/UCC/discord-bot
"
);
}
"help"
=>
{
...
...
@@ -130,6 +129,14 @@ impl EventHandler for Handler {
}
}
// undocumented (in !help) functins
"logreact"
=>
{
e!
(
"Error deleting logreact prompt: {:?}"
,
msg
.delete
(
&
ctx
));
send_message!
(
msg
.channel_id
,
&
ctx
.http
,
"React to this to log the ID (for the next 5min)"
);
}
"ldap"
=>
send_message!
(
msg
.channel_id
,
&
ctx
.http
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment