Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Byakuren
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
Reviath
Byakuren
Commits
c2288bd6
Commit
c2288bd6
authored
Apr 18, 2021
by
Reviath
Browse files
Options
Downloads
Patches
Plain Diff
Deleted interactions.
parent
3b252b30
Branches
Branches containing commit
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
+0
-2
0 additions, 2 deletions
commands/avatar.js
events/ready.js
+0
-24
0 additions, 24 deletions
events/ready.js
interactions/author.js
+0
-10
0 additions, 10 deletions
interactions/author.js
multiplexer/getapp.js
+0
-9
0 additions, 9 deletions
multiplexer/getapp.js
with
0 additions
and
45 deletions
commands/avatar.js
+
0
−
2
View file @
c2288bd6
const
config
=
require
(
'
../config.json
'
);
const
Discord
=
require
(
'
discord.js
'
);
const
multiplexer
=
require
(
'
../multiplexer/getuser
'
);
exports
.
run
=
async
(
client
,
message
,
args
,
connection
)
=>
{
const
user
=
message
.
guild
.
members
.
cache
.
get
(
multiplexer
.
GetUser
(
args
[
0
]))
||
message
.
author
const
embed
=
new
Discord
.
MessageEmbed
()
.
setDescription
(
`Avatar of
${
user
.
tag
}
`
)
.
setImage
(
user
.
avatarURL
())
...
...
This diff is collapsed.
Click to expand it.
events/ready.js
+
0
−
24
View file @
c2288bd6
const
config
=
require
(
'
../config.json
'
);
const
{
GetApp
}
=
require
(
'
../multiplexer/getapp
'
);
const
interaction_commands
=
require
(
'
../interactions/author
'
);
const
Discord
=
require
(
'
discord.js
'
);
module
.
exports
=
{
ready
:
(
client
)
=>
{
if
(
config
.
token
==
"
TOKEN
"
)
{
...
...
@@ -16,27 +13,6 @@ module.exports = {
client
.
user
.
setActivity
({
name
:
config
.
presence
});
await
GetApp
(
client
).
commands
.
post
({
data
:
{
name
:
'
author
'
,
description
:
'
See my author.
'
,
},
});
client
.
ws
.
on
(
'
INTERACTION_CREATE
'
,
async
(
interaction
)
=>
{
const
command
=
interaction
.
data
.
name
.
toLowerCase
()
if
(
command
==
'
author
'
)
{
client
.
api
.
interactions
(
interaction
.
id
,
interaction
.
token
).
callback
.
post
({
data
:
{
type
:
4
,
data
:
{
embeds
:
[
interaction_commands
.
author
(
config
,
Discord
,
client
)],
},
},
});
};
});
console
.
log
(
`Logging in as
${
client
.
user
.
tag
}
(
${
client
.
user
.
id
}
)`
);
});
}
...
...
This diff is collapsed.
Click to expand it.
interactions/author.js
deleted
100644 → 0
+
0
−
10
View file @
3b252b30
module
.
exports
=
{
author
:
(
config
,
Discord
,
client
)
=>
{
const
author
=
client
.
users
.
cache
.
get
(
config
.
owner
);
const
embed
=
new
Discord
.
MessageEmbed
()
.
setTitle
(
"
My Author:
"
)
.
setDescription
(
`<@
${
author
.
id
}
> ([
${
author
.
tag
}
](https://discord.com/users/
${
author
.
id
}
))`
)
.
setColor
(
0xff8019
);
return
embed
;
}
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
multiplexer/getapp.js
deleted
100644 → 0
+
0
−
9
View file @
3b252b30
module
.
exports
=
{
GetApp
:
(
client
,
guildId
)
=>
{
const
app
=
client
.
api
.
applications
(
client
.
user
.
id
)
if
(
guildId
)
{
app
.
guilds
(
guildId
)
};
return
app
}
};
\ No newline at end of file
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