Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sanae
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Levatax
Sanae
Commits
e789a497
Commit
e789a497
authored
Nov 7, 2020
by
Levatax
Browse files
Options
Downloads
Patches
Plain Diff
new command, v!getemoji emoji, and small changes
parent
267192c7
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
commands/avatar.js
+1
-1
1 addition, 1 deletion
commands/avatar.js
commands/getemoji.js
+20
-0
20 additions, 0 deletions
commands/getemoji.js
commands/help.js
+1
-1
1 addition, 1 deletion
commands/help.js
commands/sanae.js
+12
-0
12 additions, 0 deletions
commands/sanae.js
with
34 additions
and
2 deletions
commands/avatar.js
+
1
−
1
View file @
e789a497
...
...
@@ -4,7 +4,7 @@ exports.run = async(bot, message, args) => {
let
member
=
message
.
mentions
.
users
.
first
()
||
message
.
author
message
.
channel
.
send
(
new
Discord
.
MessageEmbed
()
.
setImage
(
member
.
avatarURL
({
dynamic
:
true
}))
.
setImage
(
member
.
avatarURL
({
dynamic
:
true
,
size
:
4096
}))
.
setColor
(
"
RANDOM
"
));
};
...
...
This diff is collapsed.
Click to expand it.
commands/getemoji.js
0 → 100644
+
20
−
0
View file @
e789a497
const
Discord
=
require
(
'
discord.js
'
);
exports
.
run
=
async
(
bot
,
message
,
args
)
=>
{
let
emoji
=
args
[
0
];
var
emojiid
=
emoji
.
match
(
/
\d
/g
);
emojiid
=
emojiid
.
join
(
""
);
var
emote
=
Discord
.
Util
.
parseEmoji
(
emoji
);
if
(
emote
.
animated
===
true
){
message
.
channel
.
send
(
'
https://cdn.discordapp.com/emojis/
'
+
emojiid
+
'
.gif
'
)
}
if
(
emote
.
animated
===
false
){
message
.
channel
.
send
(
'
https://cdn.discordapp.com/emojis/
'
+
emojiid
+
'
.png
'
)
}
};
module
.
exports
.
help
=
{
name
:
'
getemoji
'
,
aliases
:
[
'
ge
'
]
};
This diff is collapsed.
Click to expand it.
commands/help.js
+
1
−
1
View file @
e789a497
...
...
@@ -15,7 +15,7 @@ exports.run = async(bot, message, args) => {
},
{
"
name
"
:
"
<a:bit2:773994133496528896> Utility
"
,
"
value
"
:
"
v!clear msgnumber
\n
v!prefix newprefix
\n
v!ping
\n
v!emoji url name
\n
v!avatar @user
"
,
"
value
"
:
"
v!clear msgnumber
\n
v!prefix newprefix
\n
v!ping
\n
v!emoji url name
\n
v!avatar @user
\n
v!getemoji emoji
"
,
"
inline
"
:
true
},
{
...
...
This diff is collapsed.
Click to expand it.
commands/sanae.js
0 → 100644
+
12
−
0
View file @
e789a497
const
Discord
=
require
(
'
discord.js
'
);
exports
.
run
=
async
(
bot
,
message
,
args
)
=>
{
message
.
channel
.
send
(
new
Discord
.
MessageEmbed
()
.
setImage
(
"
https://media.discordapp.net/attachments/713633165704560675/774251716253450240/unknown.png
"
)
.
setColor
(
"
GREEN
"
));
};
module
.
exports
.
help
=
{
name
:
'
sanae
'
,
aliases
:
[
'
touhou
'
]
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment