Jordan
Jordan
DIAdiscord.js - Imagine a bot
Created by Jordan on 5/28/2024 in #djs-voice
Discord Speech to Text Bot
https://gist.github.com/tyliec/ddcb3dd66328f8aa8e7384e0789ea01e https://github.com/AlchemiistCreative/discord-stt-example https://github.com/vadimkantorov/discordspeechtotext Every single one of these is outdated af Please does someone have a non outdated one and for some reason when I try to use Opus it causes npm related issues. Or some sort of stt code 🤷‍♂️
6 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
client.on('messageCreate', async (message) => {
// Check if the user is online and has presence data
if (message.author.presence && message.author.presence.clientStatus) {
const userIsOnMobile = message.author.presence.clientStatus.mobile;

if (userIsOnMobile) {
message.channel.send(`${message.author.username} is using Discord on mobile.`);
console.log('using')
} else {
message.channel.send(`${message.author.username} is not using Discord on mobile.`);
}
} else {
message.channel.send(`${message.author.username} is not currently online.`);
}
client.on('messageCreate', async (message) => {
// Check if the user is online and has presence data
if (message.author.presence && message.author.presence.clientStatus) {
const userIsOnMobile = message.author.presence.clientStatus.mobile;

if (userIsOnMobile) {
message.channel.send(`${message.author.username} is using Discord on mobile.`);
console.log('using')
} else {
message.channel.send(`${message.author.username} is not using Discord on mobile.`);
}
} else {
message.channel.send(`${message.author.username} is not currently online.`);
}
Ngl I tryed using gpt because I doubt anyone has ever gotten code for this lol
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/17/2024 in #djs-questions
The Command That Has Me Stuck
I want to make a shop command that has a limited stock and will have a different item in each one. Currently the only idea that really comes into my mind is using MongoDB to add an item to the stock and giving it a value number then the command will sort it and grab the newest one. I also need it to keep track of the current stock amount and have it send the user a DM when they purchase out of the stock with the item that they purchase. Does anyone here know how I can do this?
7 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/17/2024 in #djs-questions
Shop Queue
Hello yall I'm wanting to make a shop queue which is essentially where I add multiple things under the same queue and then the one in the front comes out but no idea how to even do this right now I'm thinking I need a database of some sort unless I'm stupid
6 replies