types a bit
This commit is contained in:
parent
c33398474e
commit
d394096de3
7 changed files with 8 additions and 8 deletions
|
@ -30,6 +30,6 @@ export const cmd: Command = {
|
||||||
embed.addField('!' + cmd.name, resp.join('\n'));
|
embed.addField('!' + cmd.name, resp.join('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return e.reply({ embeds: [embed] });
|
await e.reply({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@ export const cmd: Command = {
|
||||||
const memes = await e.guild?.members.fetch().then((r) => r.toJSON());
|
const memes = await e.guild?.members.fetch().then((r) => r.toJSON());
|
||||||
if (!memes) return;
|
if (!memes) return;
|
||||||
|
|
||||||
return e.reply({
|
await e.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
title: `${memes.length} total members!`,
|
title: `${memes.length} total members!`,
|
||||||
|
|
|
@ -5,6 +5,6 @@ export const cmd: Command = {
|
||||||
desc: 'Shows the ping of the bot',
|
desc: 'Shows the ping of the bot',
|
||||||
aliases: ['test'],
|
aliases: ['test'],
|
||||||
exec: async (e) => {
|
exec: async (e) => {
|
||||||
return await e.reply(`${e.client.ws.ping}ms`);
|
await e.reply(`${e.client.ws.ping}ms`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@ export const cmd: Command = {
|
||||||
const count = await fetch('https://api.github.com/repos/PolyMC/PolyMC')
|
const count = await fetch('https://api.github.com/repos/PolyMC/PolyMC')
|
||||||
.then((r) => r.json() as Promise<{ stargazers_count: number }>)
|
.then((r) => r.json() as Promise<{ stargazers_count: number }>)
|
||||||
.then((j) => j.stargazers_count);
|
.then((j) => j.stargazers_count);
|
||||||
return e.reply({
|
await e.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
title: `⭐ ${count} total stars!`,
|
title: `⭐ ${count} total stars!`,
|
||||||
|
|
|
@ -22,6 +22,6 @@ export const cmd: Command = {
|
||||||
}
|
}
|
||||||
em.addField(tag.name, text);
|
em.addField(tag.name, text);
|
||||||
}
|
}
|
||||||
return e.reply({ embeds: [em] });
|
await e.reply({ embeds: [em] });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,7 +25,7 @@ export interface Command {
|
||||||
exec(
|
exec(
|
||||||
m: Message,
|
m: Message,
|
||||||
p: SuccessfulParsedMessage<Message<boolean>>
|
p: SuccessfulParsedMessage<Message<boolean>>
|
||||||
): Promise<Message> | Promise<any> | any;
|
): Promise<void> | void;
|
||||||
}
|
}
|
||||||
|
|
||||||
type Commands = Array<Command>;
|
type Commands = Array<Command>;
|
||||||
|
@ -80,7 +80,7 @@ client.once('ready', async () => {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);
|
// const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);
|
||||||
|
|
||||||
client.on('messageCreate', async (e) => {
|
client.on('messageCreate', async (e) => {
|
||||||
if (!e.content) return;
|
if (!e.content) return;
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "eta",
|
"name": "eta",
|
||||||
"text": "Sometime"
|
"text": "Sometime",
|
||||||
"aliases": ["wen", "when"]
|
"aliases": ["wen", "when"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue