2020-12-15 01:44:28 +00:00
|
|
|
import Event from "../core/event";
|
|
|
|
import {client} from "../index";
|
|
|
|
import $ from "../core/lib";
|
|
|
|
import {Config} from "../core/structures";
|
2020-07-25 11:01:24 +00:00
|
|
|
|
2020-12-15 01:44:28 +00:00
|
|
|
export default new Event<"ready">({
|
|
|
|
once() {
|
|
|
|
if (client.user) {
|
|
|
|
$.ready(
|
|
|
|
`Logged in as ${client.user.username}#${client.user.discriminator}.`
|
|
|
|
);
|
|
|
|
client.user.setActivity({
|
|
|
|
type: "LISTENING",
|
|
|
|
name: `${Config.prefix}help`
|
|
|
|
});
|
|
|
|
}
|
2020-10-15 09:23:24 +00:00
|
|
|
}
|
|
|
|
});
|