Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이세린
/
anxietymanager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이세린
2022-06-07 04:22:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0ec7cbdb38bbddf45c1d069c6ef4331a6773a0da
0ec7cbdb
1 parent
20c11f24
add .react, does not work in calm.js yet
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
commands/calm.js
main.js
commands/calm.js
View file @
0ec7cbd
...
...
@@ -4,17 +4,26 @@ module.exports = {
name
:
'calm'
,
description
:
'Actual help section'
,
async
run
(
client
,
message
,
args
){
const
breathe_emoji
=
'🫁 '
;
const
cute_emoji
=
'🐶'
;
const
checklist_emoji
=
'🗒️'
;
const
chat_emoji
=
'🗣️'
;
const
calm
=
new
Discord
.
MessageEmbed
()
.
setColor
(
'#91B2C7'
)
.
setDescription
(
"It's okay, I'm here to help! What would you like to do?"
)
.
addFields
(
{
name
:
';breathe'
,
value
:
"A gif to sync your breathing to!"
},
{
name
:
';cute'
,
value
:
"Some cute animal pictures to banish the bad feels!"
},
{
name
:
';checklist'
,
value
:
"I'll guide you through an anxiety checklist"
},
{
name
:
';chat'
,
value
:
"If you just want a chat with me, I'm all ears!"
}
{
name
:
';breathe'
,
value
:
`
${
breathe_emoji
}
A gif to sync your breathing to!`
},
{
name
:
';cute'
,
value
:
`
${
cute_emoji
}
Some cute animal pictures to banish the bad feels!`
},
{
name
:
';checklist'
,
value
:
`
${
checklist_emoji
}
I'll guide you through an anxiety checklist`
},
{
name
:
';chat'
,
value
:
`
${
chat_emoji
}
If you just want a chat with me, I'm all ears!`
}
);
message
.
channel
.
send
(
calm
);
message
.
channel
.
send
({
embed
:
calm
}).
then
(
messageEmbed
=>
{
messageEmbed
.
react
(
breathe_emoji
);
messageEmbed
.
react
(
cute_emoji
);
messageEmbed
.
react
(
checklist_emoji
);
messageEmbed
.
react
(
chat_emoji
);
});
}
}
\ No newline at end of file
//Add reaction event flag later
\ No newline at end of file
...
...
main.js
View file @
0ec7cbd
//bot basic primer
const
Discord
=
require
(
'discord.js'
);
const
client
=
new
Discord
.
Client
();
const
client
=
new
Discord
.
Client
(
{
partials
:
[
"MESSAGE"
,
"CHANNEL"
,
"REACTION"
]}
);
const
prefix
=
';'
;
...
...
@@ -41,6 +41,12 @@ client.on('message', async message => {
message
.
channel
.
send
(
'pong!'
);
}
if
(
command
===
'react'
)
{
message
.
channel
.
send
(
'react?'
).
then
(
reactmessage
=>
{
reactmessage
.
react
(
'😄'
);
})
}
if
(
!
client
.
commands
.
has
(
command
)){
return
;
}
...
...
Please
register
or
login
to post a comment