13 lines
256 B
TypeScript
13 lines
256 B
TypeScript
|
import { Client } from 'discord.js';
|
||
|
import { token } from './config/bot';
|
||
|
|
||
|
const lifeguard = new Client();
|
||
|
|
||
|
lifeguard
|
||
|
.login(token)
|
||
|
.then(_ =>
|
||
|
console.log(
|
||
|
`Logged in to ${lifeguard.user.username}#${lifeguard.user.discriminator}`
|
||
|
)
|
||
|
);
|