GeodesicDragon
GeodesicDragon
DIAdiscord.js - Imagine an app
Created by GeodesicDragon on 7/1/2024 in #djs-questions
'GLIBCXX_3.4.26' Not Found
I'm running my bot from a Raspberry Pi 4, and recently updated Node to the latest version. However, when I tried to restart said bot, I got an error saying node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by node). I have no idea what this means, or how to fix it. I've tried searching Google, but I can't seem to find anything about what 'GLIBCXX' actually is or how to update it. 'libstdc++' is apparently up-to-date, so that tells me I am missing something else. Also, I know this is not an issue related to Discord.JS, but since it is preventing me from starting the bot I created using it, I felt this was the best place to get the answer I am looking for. Thanks for your time.
5 replies
DIAdiscord.js - Imagine an app
Created by GeodesicDragon on 10/7/2022 in #djs-questions
Can't DM My Bot But Other People Can
I often send DMs to my bot as it is an easy way for me to keep notes of things, but lately I've found that the messages aren't being sent. Other people who send a DM to the bot get a message back saying that the bot isn't programmed to respond to such messages, but when I try it I get 'Your message could not be delivered. This is usually because you don't share a server with the recipient or the recipient is only accepting direct messages from friends.'
client.on('messageCreate', async message => {

if (message.channel.type == '1')
{
if (message.author.id != <BOT ID> && message.author.id != <MY ID>)
{
client.users.send(message.author.id, '**ERROR:** This bot is not programmed to receive Direct Messages.');
await client.guilds.cache.get("SERVER ID").channels.cache.get("CHANNEL ID").send('Received a Direct Message\n\n**MESSAGE CONTENT:** ' + message.content + '\n**SENT BY:** ' + message.author.username + '\n**USER ID:** ' + message.author.id) // Make a note of the message content, JIC.
}
}
})
client.on('messageCreate', async message => {

if (message.channel.type == '1')
{
if (message.author.id != <BOT ID> && message.author.id != <MY ID>)
{
client.users.send(message.author.id, '**ERROR:** This bot is not programmed to receive Direct Messages.');
await client.guilds.cache.get("SERVER ID").channels.cache.get("CHANNEL ID").send('Received a Direct Message\n\n**MESSAGE CONTENT:** ' + message.content + '\n**SENT BY:** ' + message.author.username + '\n**USER ID:** ' + message.author.id) // Make a note of the message content, JIC.
}
}
})
Not really sure why this is happening. Have I overlooked or missed something?
7 replies
DIAdiscord.js - Imagine an app
Created by GeodesicDragon on 10/4/2022 in #djs-questions
Ban Command Not Working
I'm trying to create a ban command for my bot that primarily works via the user's ID number, but I keep getting an error when I try testing it. The code I am using is here: https://pastebin.com/p5BPttKn The error I get is: TypeError: userid.ban is not a function Is it even possible to do this, or have I missed something (blatantly obvious, given my track record).
26 replies
DIAdiscord.js - Imagine an app
Created by GeodesicDragon on 8/23/2022 in #djs-questions
(SOLVED) Issues With Slash Command Integration
19 replies