mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
- fix message not having reply and disabled mentions
- change privacy metadata - add shard command
This commit is contained in:
parent
4e037f9188
commit
ab91a45c43
3 changed files with 29 additions and 5 deletions
|
@ -4,13 +4,12 @@ const { editOrReply } = require('../../../labscore/utils/message');
|
|||
const { PRIVACY_POLICY_LAST_UPDATE, PRIVACY_POLICY_SECTIONS, DISCORD_INVITES, COLORS } = require('../../../labscore/constants');
|
||||
|
||||
module.exports = {
|
||||
description: 'ping!',
|
||||
name: 'privacy',
|
||||
metadata: {
|
||||
description: 'bot latency',
|
||||
examples: ['ping'],
|
||||
description: 'Privacy Policy',
|
||||
examples: ['privacy'],
|
||||
category: 'core',
|
||||
usage: 'ping'
|
||||
usage: 'privacy'
|
||||
},
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
|
|
25
commands/message/core/shard.js
Normal file
25
commands/message/core/shard.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
const { icon, timestamp, link, codeblock } = require('../../../labscore/utils/markdown')
|
||||
const { createEmbed } = require('../../../labscore/utils/embed')
|
||||
const { editOrReply } = require('../../../labscore/utils/message');
|
||||
const { format } = require('../../../labscore/utils/ansi');
|
||||
|
||||
module.exports = {
|
||||
name: 'shard',
|
||||
metadata: {
|
||||
description: 'shard details',
|
||||
examples: ['shard'],
|
||||
category: 'core',
|
||||
usage: 'shard'
|
||||
},
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
return await editOrReply(context,
|
||||
createEmbed("default", context, {
|
||||
description: `${codeblock("ansi", [
|
||||
`Shard: ${format(`${context.shardId + 1}/${context.manager.cluster.shardCount}`, "magenta")}`,
|
||||
`Cluster: ${format(`${context.manager.clusterId + 1}/${context.manager.clusterCount}`, "magenta")}`
|
||||
])}`
|
||||
})
|
||||
)
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue