memory update
This commit is contained in:
@@ -261,12 +261,13 @@ async function onReady() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await generateDailyThought();
|
await generateDailyThought();
|
||||||
|
|
||||||
const thought = await getDailyThought();
|
const thought = await getDailyThought();
|
||||||
if (thought && client.user) {
|
if (thought && client.user) {
|
||||||
console.log(`[bot] setting presence with thought: "${thought}"`);
|
console.log(`[bot] setting presence with thought: "${thought}"`);
|
||||||
await client.user.setPresence({
|
await client.user.setPresence({
|
||||||
status: 'online',
|
status: 'online',
|
||||||
activities: [{ name: thought, type: ActivityType.Playing }]
|
activities: [{ name: thought, type: ActivityType.Playing }],
|
||||||
});
|
});
|
||||||
console.log('[bot] presence set successfully');
|
console.log('[bot] presence set successfully');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user