mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
idk add logs it wont work
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
import { assertExists } from "../deps.ts";
|
||||
import { bot } from "../mod.ts";
|
||||
import { ActivityTypes } from "../../src/types/activity/activityTypes.ts";
|
||||
Deno.test("editBotStatus", function () {
|
||||
import { delayUntil } from "../utils.ts";
|
||||
|
||||
Deno.test("[misc] edit the bot's status", async function () {
|
||||
bot.events.presenceUpdate = function (_bot, presense, _oldPresense) {
|
||||
console.log('in pu')
|
||||
console.log('in pu')
|
||||
assertExists(presense);
|
||||
};
|
||||
|
||||
bot.events.botUpdate = function (bot, user) {
|
||||
console.log('in bu')
|
||||
console.log('in bu')
|
||||
}
|
||||
|
||||
bot.helpers.editBotStatus({
|
||||
status: "dnd",
|
||||
activities: [{ name: "lts20050703", type: ActivityTypes.Game, createdAt: Date.now() }],
|
||||
});
|
||||
bot.events.presenceUpdate = function (_bot, presense, _oldPresense) {
|
||||
assertExists(presense);
|
||||
};
|
||||
|
||||
await delayUntil(10000, () => false)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user