Compare commits
No commits in common. "085b51a95db3a13f8ccd885674faffc9e03dffaa" and "d6d05f6a72d8b51707e43a590fef34b8f95a44c4" have entirely different histories.
085b51a95d
...
d6d05f6a72
@ -8,5 +8,5 @@ var client = module.exports = new Discord.Client({
|
|||||||
|
|
||||||
client.login(config.token).then(async () => {
|
client.login(config.token).then(async () => {
|
||||||
console.log("ready");
|
console.log("ready");
|
||||||
(await client.channels.fetch(config.bot_channel))?.send('a2');
|
(await client.channels.fetch(config.bot_channel))?.send('a');
|
||||||
});
|
});
|
||||||
|
@ -44,8 +44,8 @@ module.exports.interval = setInterval(updateUserStatuses, 1000*60*5);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
client.on("interactionCreate", async i => {
|
client.on("interactionCreate", async interaction => {
|
||||||
if (i.commandName == "addvru") {
|
if (interaction.commandName == "addvru") {
|
||||||
try {
|
try {
|
||||||
let u = i.options.getString("user");
|
let u = i.options.getString("user");
|
||||||
let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data;
|
let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data;
|
||||||
|
Loading…
Reference in New Issue
Block a user