wip
This commit is contained in:
8
src/lib/client.ts
Normal file
8
src/lib/client.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import config from "config";
|
||||
import { Client, IntentsBitField } from "discord.js";
|
||||
|
||||
const client = new Client({ intents: [IntentsBitField.Flags.Guilds] });
|
||||
|
||||
await client.login(config.discord.token);
|
||||
|
||||
export default client;
|
||||
5
src/lib/utils.ts
Normal file
5
src/lib/utils.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function getRandomInt(min: number, max: number) {
|
||||
const nextMin = Math.ceil(min);
|
||||
const nextMax = Math.floor(max);
|
||||
return Math.floor(Math.random() * (nextMax - nextMin + 1)) + nextMin;
|
||||
}
|
||||
Reference in New Issue
Block a user