sachoochoo
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 3/5/2024 in #djs-questions
Deprecation Warning (VSCode)
sorry, i realize that. just not sure exactly what to do and figured someone here atleast may have encountered such an error.
4 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
In this case, where would I initialize my first status? I believe this should be set up in my
index.js
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
require('dotenv').config();
const { ActivityType } = require('discord.js');
//TOTAL: 20 STATUSES (4 ACTIVITIES * 5 NAMES)
var statuses = [
//PLAYING
{ name: "with my phone 📱", type: ActivityType.Playing },
{ name: "negotiator with my alarm clock ⏰", type: ActivityType.Playing },
{ name: "musical chairs with study spots 🪑", type: ActivityType.Playing },
{ name: "DJ with my study playlists 🎧", type: ActivityType.Playing },
{ name: "chef with 2 AM microwave ramen 🍜", type: ActivityType.Playing },
//WATCHING
{ name: "Khan Academy 🌱", type: ActivityType.Watching },
{ name: "The Organic Chemistry Tutor 🧪", type: ActivityType.Watching },
{ name: "paint dry on the wall 💤", type: ActivityType.Watching },
{ name: "the stars for a sign that I'll pass ✨", type: ActivityType.Watching },
{ name: "the Wi-Fi signal perform a vanishing act 🛜", type: ActivityType.Watching },
//LISTENING
{ name: "the symphony of the mouse clicks 🖱️", type: ActivityType.Listening },
{ name: "the echo of unchecked notifications 🔔", type: ActivityType.Listening },
{ name: "my delusions 🔮", type: ActivityType.Listening },
{ name: "the clock ticking 🕒", type: ActivityType.Listening },
{ name: "the new album 🎶", type: ActivityType.Listening },
//COMPETING
{ name: "the autocorrect spelling bee 📝", type: ActivityType.Competing },
{ name: "drinking the very last drop of study boba 🧋", type: ActivityType.Competing },
{ name: "the game of \"this darned word count\" 🖋", type: ActivityType.Competing },
{ name: "a world of unfair deadlines 🏁", type: ActivityType.Competing },
{ name: "the library for the quietest spot 🔇", type: ActivityType.Competing },
];
module.exports = statuses;
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
could you show me how i would implement this? my code is above and my statuses are in a
statuses.js
file.15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
well, it works (atleast so far) but it takes some time for the statuses to kick in (i wanna say 20ish min before the first status) and then it works fine!
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
Unfortunate
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
So you're saying its impossible to filter through presences and I would need to stick to one?
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/18/2024 in #djs-questions
Bot statuses disappear after a short while
Is that so? What exactly is the "discord" thing and how can it be fixed in any way?
15 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
i think i just got it working right as you said that...
const statuses = require('./statuses');
should be fine, it seems to be working! Let me know if it seems good from a 3rd person perspective.
thank you!26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
may I see how that would work? i know it would require something along the lines of:
const newStatus = require('./statuses');
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
^ for
index.js
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
yes:
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
does not seem to work, however. i will try to find a solution.
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
i've just copied and pasted this code from index.js -> statuses.js
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
would a .js file labeled
statuses.js
work if i write this?:
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
i’ll try it out and give it a shot later! thank you so much
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
also I had given the idea of a JSON file on a whim.. if there’s a better way to call the data from a different file please let me know too!
26 replies
DIAdiscord.js - Imagine an app
•Created by sachoochoo on 2/15/2024 in #djs-questions
How to write a JSON file with a list of discord.js statuses and import it into the main index.js?
Hi, if it’s not too much to ask, could you provide a brief example of this?
26 replies