#development

1 messages · Page 773 of 1

modest maple
#

You'd essentially have two seperate processes

#

And then if it's bigger

#

Would need to shard both aswell

#

And use much more reasorces for something that could be achieved with the same lib

eternal adder
#

I can't think of a single reason to mix languages tbh

modest maple
#

Unless you're trying to interact with thinks that the current language doesn't support there isn't rlly

eternal adder
#

Like what though really?

#

Also I'll be sharding my music cog when needed aha

modest maple
#

Why would you shard a single cog

#

That just complicates everything unesserarily

#

And like for example

#

I use Clojure integrated with python for my bit

#

Bot*

#

So python can handle EDN files

eternal adder
#

Edn files?

modest maple
#

They're a file format we use

eternal adder
#

Ah

hollow sequoia
#

@bitter sundial I added boots 8 days ago. When do you look at the time interval

modest maple
#

He doesn't review bots

#

And it takes 2 weeks stm

hollow sequoia
#

Ok thanks

eternal adder
#

Oh really? Nice to know

fallow mango
#

oi

#

oi

#

oi

#

was.......

#

Upppppppppppppp

dark oak
#

Actually, how do you guys send a data when a user registers to the bot?

I don’t need the steps to send the data. I need help on how to receive it to the bot in NOJE JS

vital lark
#

@dark oak can you rephrase your question

dark oak
#

Yeah sure.

It’s basically like, how do you receive a JSON call from a website to a bot in node JS?

vital lark
#

uh

#

what http library are you using

#

you'll need to use an http library to request to the server to return JSON

dark oak
#

Oh.

vital lark
#

node-fetch and axios are popular

dark oak
#

I use node-fetch

vital lark
#

oh

#

you basically do req.json which returns a Promise

dark oak
#

But I kinda from google I learnt about it and came to know that we could fetch a JSON from a website.

vital lark
#

you can

dark oak
#

But what should be the event for the bot?

vital lark
#

there is no event

dark oak
#

Should the code be in the index.js then?

vital lark
#

yes

#

or whatever file your using it for

dark oak
#

So, I am basically trying to send a JSON call with a web link, whenever a user sign ups a page.

So, how can the bot receive it?

slender thistle
#

@modern sable is mysql much different from sqlite

modern sable
#

i've never used sqlite

slender thistle
#

Fuck

dark oak
#

const fetch = require('node-fetch')
                      const { RichEmbed } = require('discord.js')
module.exports.run = async (bot, message, args, c) => {
const { file } = await fetch('site').then(response => response.json());

    message.channel.send(file);
}```
#

Is this right? @vital lark. Am I correctly pulling the Call?

vital lark
#

well yes

#

I wouldn't really destructure the response call

dark oak
#

👍

#
const fetch = require(“node-fetch”)
let array;
fetch(“https://bla bla.com”).then(r => array = r)

console.log(array);
#

Will this work if I add it to my Index.js @vital lark

#

I am sorry for disturbing you..

vital lark
#

ur not really disturbing you

#

but r is the response object which will return that

#

but yes it will

dark oak
#

Yeah lol. I am poor at naming them. Ok 👍

earnest phoenix
#

question : I'm coding my bot in js, and I want him to execute a code over and over again with a one minute pause during each execution. How can I do that

slender thistle
#

setInterval some function

earnest phoenix
#

a setInterval will exec the code once

sudden geyser
#

you're thinking of setTimeout

slender thistle
#

pogchamp my assumptions were wrong

vital lark
#

no

#

setInterval is correct

earnest phoenix
#

I think ye
setInterval and setTimeout looks the same

vital lark
#

setTimeout is only once

#

it's a timeout of a function that only calls once

#

so yes, shivu is correct

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vital lark
#

oh god

sudden geyser
#

me no like

#

and what language is that

sage bobcat
#

One message removed from a suspended account.

vital lark
#

F#

modest maple
#

@slender thistle the query's are basically identical

sudden geyser
#

fuck im out of here

earnest phoenix
#

what's f#

modest maple
#

Just slightly different function calling

slender thistle
#

You're obviously wrong, they're not the same smh

#

Clue in the name which isn't the same so the entire syntax is different

modest maple
sage bobcat
#

One message removed from a suspended account.

vital lark
#

god

#

oop > fp

modest maple
#

Yes

sage bobcat
#

One message removed from a suspended account.

vital lark
#

no stop

sage bobcat
#

One message removed from a suspended account.

vital lark
#

f# is barely readable for any functional programmer imo

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sudden geyser
#

check out kotlin

vital lark
#

Kotlin is pretty sexy

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

lament meteor
#

use brainfuck

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sudden geyser
#

Id rather be unique
@sage bobcat make a bot in C

lament meteor
#

thats a big F tbh

eternal adder
#

I mean, it's possible

quartz kindle
#

if you really want to be unique, use an esolang

#

good luck finding one that has working websockets though lol

sudden geyser
#

if only esskeetit (an esolang) had websockets

knotty steeple
#

so

#

whats a actually decent language i can fuck around with

earnest phoenix
#

it depends on your preferences

slender thistle
#

Whitespace, lolcode, brainfuck

knotty steeple
#

@earnest phoenix mostly high level stuff

#

not esolangs crylaugh

earnest phoenix
#

if you're into oop

knotty steeple
#

im not

earnest phoenix
#

c# / python / typescript

#

rip

knotty steeple
#

but sometimes i python

earnest phoenix
#

=help

modest maple
#

Python is OOP

#

Wait

#

Sorry cry I miss read your message

earnest phoenix
#

lol dw

knotty steeple
#

also

#

ive tried dart

#

any scripting languages like js also works

sage bobcat
#

One message removed from a suspended account.

west raptor
#

@sage bobcat make a bot in C
@sudden geyser

Actually possible with libdiscord

sage bobcat
#

One message removed from a suspended account.

west raptor
sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

i just use dotnet CLI / visual studio to install packages from nuget

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

dotnet add package <pkg>

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

where ever the proj file is

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

design differences

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

they're both equivalent in difficulty

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

no idea

slender thistle
#

both being hard if you don't know C# GWmemetownKappaChino

earnest phoenix
#

probably because dsp is a revived version of a dead lib

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

slender thistle
earnest phoenix
#

d.net's been around for longer so it got a bigger rep

#

but d.net is more prone to breaking

#

and it makes more unnecessary requests

slender thistle
#

Was there Disqord

earnest phoenix
#

yup

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

i'm switching to disqord

sage bobcat
#

One message removed from a suspended account.

slender thistle
sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

disqord is still a wip lib

#

but it's way more performant than both libs

#

and offers stateless REST

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

Looks simple for someone who only just learned basics of C#

earnest phoenix
#

yeah @sage bobcat

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

i mean probably

#

since they're literally built on top of netstandard/netcore

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

are you actually trying to write a bot in F# @sage bobcat

earnest phoenix
#

i've seen someone do it before

#

they struggled with async enumerables

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

mossy vine
#

isnt that.. quite a jump

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

west raptor
#

@mossy vine I switched from js to rust

#

Not bad

dark oak
#

Hey guys. Is it possible to directly send a message from a website to a discord bot in node js?

modest maple
#

yes

dark oak
#

How? @modest maple

modest maple
#

webhooks, apis, etc....

#

fair few options

dark oak
#

How can that be done with Webhooks? I am confused on this part. Can you explain me with exampl if possible?

modest maple
#

thats a webhook

dark oak
#

Oh. How can we do that with a discord bot?

neat vapor
#

Java, Eclipse
Quick question, I need Maven for Eclipse to be able to run my discord bot? 🤔

modest maple
#

you'd need to create some sort of webhook system on website side and bot side

dark oak
#

Alright.

minor kelp
#

Trying to make my bot play music but i keep getting "opus isnt loaded".
I try to make it load but it is just refusing to.
How do i fix this?

dark oak
#

@modest maple How do we check if there's any new post by a webhook? And hwo to pull the message?

modest maple
#

thats gonna be research on ur end

#

look up how webhooks and APIs work and how to make them

mossy vine
#

do u even know what a webhook is

dark oak
#

Yes I do. I tried to pull the data with the bot recognizing awebhook. But it just becomes an infinite loop since a bot's command just makes the trigger to respond infinitely.

earnest phoenix
#

all messages come through the gateway

#

you should be able to check if the message's author is a webhook

minor kelp
#

Could i get some help?

slender thistle
#

Trying to make my bot play music but i keep getting "opus isnt loaded".
I try to make it load but it is just refusing to.
How do i fix this?
How is it refusing to work

minor kelp
#

It keeps throwing an error.

#

I added ```py
if not discord.opus.is_loaded():
discord.opus.load_opus('libopus.so')

To my code, And it still doesnt work.
#

If you must know, Im on Linux.

mossy vine
#

and what is the error

restive furnace
#

@neat vapor

Java, Eclipse
Quick question, I need Maven for Eclipse to be able to run my discord bot? thinking
Click New Project..., then find Maven Project, and then follow starting steps for Echlipse in JDA (Java Discord API) Wiki. And yes, you should start with JDA even if you planned other, cause JDA has best docs for making discord bot in java, but when you have more acknowledge, you can switch to ex. Discord4J

minor kelp
#

Voice cannot be used because libopus is not loaded.

slender thistle
#

Try discord.opus.load_opus('libopus.so.0')

minor kelp
#

Alright,

#

I'll let u know if it works

neat vapor
#

Thank you Rad.

minor kelp
#

@slender thistle

#
Jan 22 08:32:32 chipthewolf python[24198]: Traceback (most recent call last):
Jan 22 08:32:32 chipthewolf python[24198]:   File "/usr/botv2/bot.py", line 13, in <module>
Jan 22 08:32:32 chipthewolf python[24198]:     discord.opus.load_opus('libopus.so.0')
Jan 22 08:32:32 chipthewolf python[24198]:   File "/usr/local/lib/python3.6/dist-packages/discord/opus.py", line 150, in load_opus
Jan 22 08:32:32 chipthewolf python[24198]:     _lib = libopus_loader(name)
Jan 22 08:32:32 chipthewolf python[24198]:   File "/usr/local/lib/python3.6/dist-packages/discord/opus.py", line 81, in libopus_loader
Jan 22 08:32:32 chipthewolf python[24198]:     lib = ctypes.cdll.LoadLibrary(name)
Jan 22 08:32:32 chipthewolf python[24198]:   File "/usr/lib/python3.6/ctypes/__init__.py", line 426, in LoadLibrary
Jan 22 08:32:32 chipthewolf python[24198]:     return self._dlltype(name)
Jan 22 08:32:32 chipthewolf python[24198]:   File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
Jan 22 08:32:32 chipthewolf python[24198]:     self._handle = _dlopen(self._name, mode)
#

ignore system name 👀

slender thistle
#

not the full traceback

minor kelp
#

it is?

modest maple
#

no

minor kelp
#

I also get OSError: libopus.so.0: cannot open shared object file: No such file or directory

modest maple
#

that last part was legit the most important thing

minor kelp
#

lol

#

shouldve said that

blissful scaffold
#

@neat vapor maven makes it a lot easier

neat vapor
#

Can I ask why? 🤔

blissful scaffold
#

If you add the discord library that you want to use then it automatically adds all the other libraries that are needed to use the discord lib

#

I created the first versions of my original bot without using maven and since I started using it it got a lot easier to upgrade to new library versions

minor kelp
#

@slender thistle fix?

slender thistle
#

Let me check my non-existent handbook

neat vapor
#

Thank you for the advice WhiteSpirit.

slender thistle
#

How did you install opus

minor kelp
#

apt-get?

#

As you would using Linux

slender thistle
#

What does ```py
import ctypes
print(ctypes.util.find_library('opus'))

minor kelp
#

Lemme test

#

I would but WinSCP just froze

slender thistle
#

Are you not using a separate SSH client

minor kelp
#

I am?

#

@slender thistle

#
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    print(ctypes.util.find_library('opus'))
AttributeError: module 'ctypes' has no attribute 'util'
slender thistle
#

What

minor kelp
#

idk

#

it gave me that

stable horizon
minor kelp
#

idk

eternal adder
#

Customisable moderation is almost finished for my bot!

minor kelp
#

cool

eternal adder
#

Slowly working through a to-do list aha

minor kelp
#

how big

#

👀

west spoke
#

smol

eternal adder
#

Rather small now

west spoke
#

@eternal adder what lang

eternal adder
#

Python.

minor kelp
#

:)

west spoke
#

ohooooo

#

would you like a anime lib

eternal adder
west spoke
eternal adder
#

sure? as long as there's no risks of it being nsfw

slender thistle
#

This is ads neko

eternal adder
#

true

west spoke
#

its managed by me. I'll send in dm

#

oi shiv that's why I asked first

minor kelp
#

Shivaco, What is causing my bot to die?

#

It's just error after error after error

eternal adder
#

what exact command did you use to install libopus?

minor kelp
#

if i remeber

#

sudo apt-get libopus

#

friend said to. and he uses linux so

eternal adder
#

that'd by why, you didn't tell it to install

west spoke
#

pip install opus?

minor kelp
#

i said

west spoke
#

idk

eternal adder
#

sudo apt-get install libopus

minor kelp
#

if i remember

eternal adder
#

well, apt-get libopus gets it without installing it

minor kelp
#

ill try thatt

#

E: Unable to locate package libopus

eternal adder
#

sudo apt-get update && sudo apt-get upgrade

minor kelp
#

did those when i got my VPS

eternal adder
#

you sure? hmm

minor kelp
#

i did

eternal adder
#

when was that?

#

and also what linux distro?

minor kelp
#

lemme check my vps

slender thistle
#

Did you install opus-tools

eternal adder
#

strange, the phrase opus seems to be completely absent from my music cog but it works fine

minor kelp
#

because

#

its discord that uses it mainly

#

ok

#

Ubuntu-18.04

eternal adder
#

yes, my discord bot's music cog

hmm. even more strange

slender thistle
#

Did you install opus-tools

minor kelp
#

uh

#

lemme check

#

yea

eternal adder
#

ooh i think i know why i'm not using opus
ffmpeg works instead

ill be back

minor kelp
#

ignore that i just installed it

#

RaVen.

#

Discord. Uses. Opus.

#

you wont see it in ur code

knotty steeple
minor kelp
#

wat

#

@slender thistle sry for many pings

#

im still confused

slender thistle
#

try from ctypes.util import find_library

minor kelp
#

oki

#

output: libopus.so.0

slender thistle
#

Now load_opus that

minor kelp
#

alr

tiny tinsel
#

Would RestSharp perform requests faster than built-in Webclient?

minor kelp
#

Restarted

#

now ill try jsk voice

earnest phoenix
#

Would RestSharp perform requests faster than built-in Webclient?
use HttpClient

tiny tinsel
#

@earnest phoenix Because right now I use WebClient It works fine. A bit slow but I have no clue what would happen If more than 2-3 users do it at the same time.

earnest phoenix
#

webclient is ooga booga way of performing requests

#

HttpClient has async support and tim berners lee worked on it himself

tiny tinsel
#

Alright thanks I will look at it.

#

Because sometimes It is a bit slow to finish the request and actually perform an action.

minor kelp
#

@slender thistle i get FFmpeg not found even though it is installed?

slender thistle
#

How did you install ffmpeg

#

Oh well

#

apt-get install ffmpeg

minor kelp
#

i used my requirements.txt

#

but ill do that]

eternal adder
#

you need it installed through both pip and apt

minor kelp
#

oof

#

ok im idot

eternal adder
#

Installing it through apt installs ffmpeg itself, while installing it through pip installs the python wrapper for it.

fallow mango
#

can someone here review my command rq

eternal adder
#

what language?

fallow mango
#

python

eternal adder
#

sure, i'll take a look

fallow mango
#

dm?

eternal adder
#

preferably in this server, but okay

fallow mango
#

@client.command()
async def userinfo(ctx, member: discord.Member = None):
    member = ctx.author if not member else member
    roles = [role for role in member.roles]

    embed=discord.Embed(colour=member.color, timestamp=ctx.message.created_at)
    
    embed.set_author(name=f"User Info = {member}")
    embed.set_thumbnail(url=member.avatar_url)
    embed.set_footer(text=f"Requested By {ctx.author}", icon_url=ctx.author.avatar_url)
    
    embed.add_field(name="ID:", value=member.id, inline=False)
    embed.add_field(name="Guild name:", value=member.display_name, inline=False)
    
    embed.add_field(name="Created at:", value=member.created_at.strftime("%a, %d %B %Y, %I:%M %p CST"), inline=False)
    embed.add_field(name="Joined at:", value=member.joined_at.strftime("%a, %d %B %Y, %I:%M %p CST"), inline=False)
    
    embed.add_field(name=f"Roles ({len(roles)})", value=" ".join([role.mention for role in roles]), inline=False)
    embed.add_field(name="Top role:", value=member.top_role.mention, inline=False)
    
    embed.add_field(name="Bot?", value=member.bot, inline=False)

    await ctx.send(embed=embed)
#

their

knotty steeple
#

if it works

#

its good

slender thistle
#

What about it

knotty steeple
#

so try it and see

fallow mango
#

ok

#

yay it works

#

nvm

eternal adder
#

it seems good

fallow mango
#

ok

slender thistle
#

roles = [role for role in member.roles]
Why not just member.roles

fallow mango
#

and @slender thistle how are you a library developer?????

slender thistle
#

I maintain dblpy

fallow mango
#

ohhh

#

ok

regal saddle
#

Somebody out here who coding with PyCharm?

vital lark
#

@modest maple heyo read above cutie

modest maple
#

i do @regal saddle

regal saddle
#

Do you know how i can get a Prefix Command?

#

like change the prefix for the bot on discord servers

knotty steeple
#

you can code it

#

thats how you get every command

regal saddle
#

ik

#

but i dont know how i should write it

modest maple
#

what does pycharm have todo with that xD

regal saddle
#

im kinda retarted atm

modest maple
#

you need a database

knotty steeple
#

use database

#

write custom prefix to database

modest maple
#

and just do the main key as guildID

#

and then prefix

knotty steeple
#

check if custom prefix is used in right guild

regal saddle
#

kkkk

#

thx doe

knotty steeple
#

and if ur gonna use any sql db

#

try not to make urself prone to sql injection

regal saddle
#

😄

eternal adder
#

I've literally gone for writing a python dictionary to a text file to store things

knotty steeple
#

dont use a text file as a db

modest maple
#

jesus no

#

thats a really badddd idea

slender thistle
#

Ehh

eternal adder
#

tbh it works

modest maple
#

NO

slender thistle
#

Handle it properly

modest maple
#

DONT DO IT

eternal adder
#

too late

slender thistle
#

Just open it once and work with it in cache and save the data on bot shutdown in it

modest maple
#

its too late when you have to transfer several hundred files to a db because it become blocking

knotty steeple
#

shiv why

#

dont

#

say that

slender thistle
#

JSON database isn't bad if you handle it properly

knotty steeple
#

bruh

#

im dying inside

slender thistle
#

Also if you're looking for a large bot you should use an actual database but if it's small-medium one you want to make eh

sterile minnow
#

Hello Guys,

Idk how to use Lavalink in js, can someone write me an easy example with bass bosster shuffle and this stuff (allrounder) that i can test? that would be cool 😄 .

slender thistle
#

That's more like spoonfeed

blissful scaffold
#

I think there are many examples for Lavalink

sterile minnow
#

but how do i setup?

#

ok i'll have a look at github

cloud hollow
#

can anyone help me make a server greeting custom so the server owner can change it?

earnest phoenix
#

which library are you using

cloud hollow
#

discord.js

#

client.on('guildMemberAdd', member => { const channel = member.guild.channels.find(ch => ch.name === 'member-log'); if (!channel) return; channel.send(Welcome to the server, ${member}`);
});

stable horizon
#

What's with all the shit about json

cloud hollow
#

theres the code i have

slender thistle
#

JSON getting shat on as a db

stable horizon
#

Json isn't an optimal storage method of course, but as long as you handle file reading/writing properly it's an OK way to store your data

slender thistle
#

you're stealing my words bro not cool :(

earnest phoenix
#

it isn't

#

json lacks in data types and has strict formatting rules

#

it was never meant to be a database

#

it's meant for quick object serialization

stable horizon
#

I said not optimal...

#

But yes, it is an OK way to store data, if you don't have time or resources or whatever to set up a database (and or can't be arsed to learn SQL)

#

@slender thistle kayjay1Love

slender thistle
#

❤️

earnest phoenix
#

i mean

#

ORMs exist

#

you don't need to know sql to use sql databases

#

and there are some nosql databases too which are better alts to json

tiny tinsel
#

@earnest phoenix Using HTTPClient resolved all issues thanks.

earnest phoenix
#

niceeee

stable horizon
#

And those require server setups. Which isn't always available.

tiny tinsel
#

Well. There was no issues just WebClient being really slow.

cloud hollow
#

anyone know how to have a custom server greeting from server to server?

earnest phoenix
#

not all sql databases are server based @stable horizon

stable horizon
#

I meant all the nosql ones

earnest phoenix
#

there are also nosql serverless databases

tiny tinsel
#

@cloud hollow You could store messages somewhere.

#

@cloud hollow And check what message is assigned to the guild on join.

stable horizon
#

Right, I'm done. I stand by what I said. Json is an acceptable way to store your bots data. End of conversation from me.

earnest phoenix
#

it quite literally isn't but ok

#

people keep saying that until they get burned on data corruption and formatting issues

tiny tinsel
#

As JSON he's talking about MongoDB?

earnest phoenix
#

no, quite literally json files

tiny tinsel
#

Storing data directly in .json files locally?

earnest phoenix
#

yeah

lofty hamlet
#

Hi, i want make my bot who have 3K servers in other language, this is french bot but i want make en language on my bot, what framework or system i can use ?

knotty steeple
#

so

#

multi lang support

tiny tinsel
#

@lofty hamlet What language you use?

#

Wait that's irrelevant.

#

I use C# and If I had to something like this I'd use CultureInfo.

#

No clue what would be the equivalent in other languages.

knotty steeple
#

you can store messages of the other language in some file

#

like

earnest phoenix
#

nah nathan

knotty steeple
#

json crylaugh

earnest phoenix
#

cultureinfo is for system based stuff

#

datetime formatting etc

#

they want an actual translation of their bot's responses

stable horizon
#

I have a friend who has ~400 Json files for their bots multilang system lol

lofty hamlet
#

@tiny tinsel js

#

@stable horizon your friend is fucked

#

😂

stable horizon
#

Nah, works perfectly fine

lofty hamlet
#

Yeah but the code is shit i think

stable horizon
#

No?

tiny tinsel
#

@earnest phoenix I'm pretty sure you can use CultureInfo for translations.

lofty hamlet
#

Ok if you want

#

So

earnest phoenix
#

i don't think so

#

well

#

it's only useful for ISO codes

tiny tinsel
#

@lofty hamlet You could make a file and store your translations like someone said earlier.

earnest phoenix
#

ideally, you'd use something like Crowdin, but if that's too much, have a file system where each response is translated in a json file for each country then name the json file the country ISO code(e.g en.json for english or de.json for german), then you'd save the guild's language (their ISO code) in a database and based on that pull the translations from a file

#

you'd obviously load the file into mem to prevent reading it over and over again

lofty hamlet
#

@tiny tinsel store in one json file with array ?

#

I know this but I was looking for a simpler solutionI know this but I was looking for a simpler solution

sterile minnow
#

Well hello again,

Has anyone a idea how to make a loop and shuffle command with the Dispatcher thingy and discord.js?

hoary elm
#

No Errors no Dep Warnings.

summer torrent
#

where is the name/aliases?

hoary elm
#

Bot doesn't use those yet

#

I know what you mean

exports.conf ect ect but I don't have those setup yet

#

Right now I have a basic command handeler finds the commands folder and executes the files in it as long as they include .js

summer torrent
#

you need a name/aliases for run a command

hoary elm
#

All my commands run like this with no problems

#

Like I said it executes JS files as commands

#

Example: ```let commandFile = require(../commands/${command}.js);

median skiff
#

can i add 8.28e+7 to my discord bot

summer torrent
#

how to you call the command?

#

there is nothing to run that command right now

hoary elm
#

Really

#

Runs commands fine

#

🤷🏻‍♂️

median skiff
#

8.28e+7 is that fine to added

summer torrent
#

@median skiff what is 8.28e+7

median skiff
#

23 hours

summer torrent
#

what do you want to do

median skiff
#

it for my cooldown

summer torrent
#

can you explain clearly?

late hill
#

show us where it runs from @hoary elm

median skiff
#

for the bump command i am making i am setting the cooldown to 23 hours but i dont know if i can added it like this

#

8.28e+7

hoary elm
#

Standby

late hill
#

remove the + @median skiff

hoary elm
late hill
hoary elm
#

Uses FS to search the commands folder for the file and then executes that if it's called with a prefix

late hill
#

You should consider using hastebin

hoary elm
#

Yeah I thought about that after I noticed how crowded pastebin made it

#

I can re-upload somewhere else

late hill
#

There's some weird things in there

#

But I guess it should work

hoary elm
#

It's a basic command handeler I used just to get the bot running I do plan on changing it in the future

#

But for now it works

late hill
#

Nothing happens when you try to use the command?

hoary elm
#

No bot provides no response.

late hill
#

No logs?

hoary elm
#

No errors

late hill
#

ok

hoary elm
#

I have the logs set to show what command was used

#

It shows the command was executed but nothing else

late hill
#

oh

#
console.log(`[Orcinus] [${message.guild.name}] [${message.author.username}] ${row.prefix}${command} ${args}`);```
#

that thing

#

right

hoary elm
#

Yeah

late hill
#

ok

hoary elm
#

It shows that in the logs but the command doesn't actually execute 🤷🏻‍♂️

late hill
#

Add a log to your catch

#

for when the if condition is true

#

Because right now you just return

hoary elm
#

Okay I'll try that out 😁

#

Thanks

late hill
#

That's probably where it ends up

hoary elm
#

Right now this is the only command giving me issues.

late hill
#

Maybe you messed up the file name

slender thistle
#

@modern sable When you were setting up MySQL, what did you choose as serverTimezone

late hill
#

Or the location of the file

modern sable
#

i didnt choose anything so it probably defaulted to system time

sage bobcat
#

One message removed from a suspended account.

modern sable
#

UTC might be better tho

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hoary elm
#

@late hill I'll look into it.... Thanks again

slender thistle
#

Yeah UTC sounds good

earnest phoenix
#

just save the unix timestamp

#

less hassle

slender thistle
#

MySQL is yelling at me for not setting it up

#

I haven't even gotten to at least import any MySQL wrapper in my code

#

Oh yay it works

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

If I had control over the project I would

modest maple
#
Traceback (most recent call last):
  File "D:/Innkeeper/BotStart.py", line 164, in <module>
    MonsterCommands.LoadFiles(Paths=PathsDict)
  File "D:\Innkeeper\Commands\MonsterCommands.py", line 36, in LoadFiles
    Monster_Server.loading(Paths)
  File "D:\Innkeeper\Servers\Monster_Server.py", line 84, in loading
    executable_path=Paths["GeckoDriver"])
  File "D:\Innkeeper\venv\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 174, in __init__
    keep_alive=True)
  File "D:\Innkeeper\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "D:\Innkeeper\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "D:\Innkeeper\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "D:\Innkeeper\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: permission denied```
#

sorry selenium what the fuck?

slender thistle
#

PogChamp rip

modest maple
#

i got permission denied from my own site Thonk

#

actually that might be my router blocking it

slender thistle
#

Back to fucking schemas

modest maple
#
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: users.charId
[SQL: INSERT INTO users ("charId", "userId") VALUES (?, ?)]
[parameters: (228154604638634689, 290923752475066368)]
(Background on this error at: http://sqlalche.me/e/gkpj)```
#

please god

#

may someone end me rn

#

WHY DF WONT IT WORK JESUS CHRIST

slender thistle
#

oof

modest maple
#

its having a fit

#

over nothing

#

am i the only one

#

who doesnt understand

#

why it doesnt like it

late hill
#

You already have a user with that charId in the table?

modest maple
#

its a blank db

#

we havent even got past the adding part yet

#
class UserDB(User_Base):
    __tablename__ = 'users'
    charId = Column(Integer, primary_key=True)
    userId = Column(Integer, nullable=False)
#

thats the layouts file

#
    def add_character(self, userId, charId):
        New_User = UserDB(userId=userId, charId=charId)
        self.session.add(New_User)
        self.session.commit()```
#

thats the actual function that does it

marble juniper
#

how do I check in discord.js if the message does not contain attachments

sudden geyser
#

Check out Message#attachments and check the size

#

@modest maple are you 100% sure it's blank

modest maple
#

ive reset the DB each time ive tested it

eternal adder
#

I've finished my moderation cog, improved music, and added support for a custom prefix!

blissful scaffold
#

@modest maple after you create and before you try to add that value check your empty db with https://sqlitebrowser.org/ or another sqlite viewer to see if it's really empty

modest maple
#

its getting deleted and remade each time

#

its some sort of issue with it being 'unqiue'

#

omfg we found the issue

#

fukciung

#

one array

#

was getting called early

#

and that made the thread crash

#

but the system then tries again

#

because somtimes pages time out

#

and then it would break because it would update rather than commit

#

ahh

#

now to find out why the hashing system isnt spitting out a new hash each time

blissful scaffold
#

Can a bot mute a user in voice chat so that the user is muted only for the bot?
Like you can mute someone without giving a server mute

earnest phoenix
#

why

blissful scaffold
#

because bots can receive audio data

earnest phoenix
#

yes

#

and

blissful scaffold
#

if I want to receive audio data from a few people and not from the others then I want to mute the other people without giving them a server mute

earnest phoenix
#

i hope you're aware that every user has their own stream and you can choose whose stream you want to read

blissful scaffold
#

hmm, so far I have only been testing it with only myself in the voice channel
Thank you for the info ^^

topaz fjord
#

@slender thistle ez fix

#

Make a helper class that has mongo method names but executed sql

#

executes

#

mongsql

slender thistle
topaz fjord
#

coming to you soon

slender thistle
#

I still have to do the SQL queries so fuck it

topaz fjord
#

I should make that

fallow mango
#

im getting an error saying Module import youtube_dl doesnt exist

#

help

#

pls

wicked pivot
earnest phoenix
#

embeds

west raptor
#

h

wicked pivot
#

sorry link

#
const name = args.join(" ")

    if(!name){
        return message.channel.send("Indiquer le link pour le test")
    }

    const url = name

    const res = await fetch(url).then(url => url.json())

    console.log(res)```

```UnhandledPromiseRejectionWarning: FetchError: invalid json response body at "link discord" reason: Unexpected token < in JSON at position 0``` this works with Instagram but not with discord links
earnest phoenix
#

are you sure it's actually json

#

and that you're not just attempting to parse a html page

west raptor
#

are you even fetching from a valid webpage

#

and why are you making 2 consts that are the same thing

fallow mango
#

i keep getting an error saying Module import youtube.dl doesnt exist?

#

youtube_dl

west raptor
#

..because it doesnt? did you install it?

fallow mango
#

yes

west raptor
#

i thought it was youtube-dl

fallow mango
#

but when putting it into code dont you do youtube_dl?

west raptor
#

what

unique nimbus
#

What

dusky marsh
#

Any ide/editor with good intellisense should finish the import for you so you don't have this problem, especially if you're a beginner

west raptor
#

any jetbrains ide

stable horizon
#

What language

#

Cause in python, youtube-dl is definetly incorrect

fiery stream
#

Ayyy

#

Someone wanna do production level app with me

#

Must know js, html, css

mint storm
#

T

tiny tinsel
#

@fiery stream production level app?

fiery stream
#

@tiny tinsel ya

tiny tinsel
#

Depends what is it.

fiery stream
#

I dont know something like photo vault

tiny tinsel
#

Mobile app?

fiery stream
#

On everything starting with web

#

We should dm if u are interested

tiny tinsel
#

Sure.

eternal adder
#

Does anyone here have raid protection in their bot?

sinful lotus
#

I have one although it prevents raids by having users fill in a captcha before gaining access to server. Although its my personal bot

eternal adder
#

Interesting. I was just wondering what your methods were aha

#

@modest maple whereabouts are you? I know in the UK it is common, to the point where practically everyone has a static public ip

modest maple
#

UK it isnt

#

It may seem static

#

But BT, Sky, Virgin etc... All have dynamic IPs unless you contact your isp

#

The only difference being is that they usually only change when your router restarts (this is true mostly for BT lines)

#

Sky's system normally changes IP once a month give or take

wicked lily
#

I got dynamic IPS

#

Each packed with 10x DDOS protection (upgradable to 240x)

modest maple
#

I just have to static IP lines with a DNS server and other shiz

earnest phoenix
#
  1. use code blocks for our eyes pls:
    ```java
    <code>
    ```
  2. Please state what the code should do
mint storm
#

ok

slender thistle
#

Explain the issue

earnest phoenix
#

and if a error occurs, please tell us

mint storm
#

no issue in the code i was just joking

earnest phoenix
#

Alright

mint storm
#

it work prefect

earnest phoenix
#

then please refrain from putting random code blocks here if you dont need help

mint storm
#

do u know any jda host?

earnest phoenix
#

Such things can, when repeated, lead to a mute / ban

mint storm
#

deleting sec

#

done

earnest phoenix
#

thank you.

mint storm
#

do u know any jda host?

earnest phoenix
#

no

mint storm
#

ok

warm marsh
#

Host it yourself?

modest maple
#

Most VPSs will be able to run JDA

wary belfry
#

whats the most popular and well documented js library for bots ?

earnest phoenix
#

discord.js

#
wary belfry
#

thx

earnest phoenix
west raptor
#

There's also Eris but it's a little more advanced from what I've heard

tulip wave
#

^

#

No embed constructors too

late hill
#

It takes 5 minutes to make your own class for embeds

eternal adder
#

5 wasted minutes (my nitro expired a few days ago)

tulip wave
#

@late hill well I'm fucking lazy so stfu

#

I'm also stupid as all shit and I can't do it myself

late hill
#

"wasted" many things you do in your daily life are probably a "waste" depending on how you look at it

eternal adder
#

Existence is a waste

late hill
#

can't argue with that

tulip wave
#

No depressie in my Dev chat

regal saddle
rustic veldt
#

hello

#

I now wrote ~ set game Hello World in my bot's playing section.

#

instead of playing it, it takes the command ~ set game, how to fix it

modest maple
#

Lib and code?

rustic veldt
#

no

#

I did a code like that

slender thistle
#

CF8 is asking what your library is and what your code looks like

rustic veldt
#

what is cf8

modest maple
#

Me

#

-_-

rustic veldt
#

command

slender thistle
#

Well you made it so that when someone uses the command setgame the bot changes its status

rustic veldt
grim aspen
#

what is argresult

rustic veldt
west raptor
#

isn't setGame deprecated

slender thistle
#

I'll let this human being read the docs and suffer the pain of coding

west raptor
#

Also it looks like you're args include the command name

slender thistle
#

Their problem to suffer

modest maple
#

Yus

rustic veldt
#

sadap

modest maple
#

How old are you

rustic veldt
#

13

earnest phoenix
#

13 = no underage ban

#

Ur licky

#

*lucky

west raptor
#

What exactly is "argsresult"?

slender thistle
#

Sometimes I think too many people think coding is cool

modest maple
#

Read the docs

rustic veldt
#

@west raptor

modest maple
#

Coding is actually hell created by other nerds to compete with one another over who is more sad

west raptor
#

What

rustic veldt
#

setgame Hello World

modest maple
#

It also seperates the nerds from the people who don't read

rustic veldt
#

this is the result

modest maple
#

We know

#

Learn

#

To read

#

The docs

earnest phoenix
#

What is argsresult

slender thistle
#

Where do you define argresult in your code?

modest maple
#

👏 👏

rustic veldt
#

when you say?

slender thistle
#

Where, not when

grim aspen
#

do you have an arg split?

west raptor
#

Where are you saying this is what argresult is

earnest phoenix
#

Show us where is argsresult definied

rustic veldt
#

where i use

west raptor
#

No where you define

earnest phoenix
#

Where u created it

grim aspen
#

split it by the first arg after the command that was run

earnest phoenix
#

The start of ur code

rustic veldt
earnest phoenix
#

No

#

The beginning of ur code

west raptor
grim aspen
#

show us where you define argresult

earnest phoenix
#

With a line similar to js const argsresult = ...

rustic veldt
earnest phoenix
#

Yea this

quartz kindle
#

hes splitting on "" instead of " "

rustic veldt
#

yes

grim aspen
#

well the command is being run and whatever is outputted is including the command ran in their case

rustic veldt
#

?

quartz kindle
#

you probably want to do .split(" ") not .split("")

earnest phoenix
#
args.join(' ')```
#

Whti the space

#

*with

rustic veldt
#

problem ~ set game Type Hello World ~ set game is getting yide instead of problem

quartz kindle
#

i already told you how to fix it

grim aspen
#

it's what tim said

earnest phoenix
#

Wait a sec

rustic veldt
#

how can i fix it

earnest phoenix
#

Use setActivity instead

quartz kindle
#
// without space
.split("") = ["!","c","o","m","m","a","d","etc"];
// with space
.split(" ") = ["!command", "argument"];
rustic veldt
#

where will i write

quartz kindle
#

in your .split

indigo geyser
quartz kindle
#

you did .split("")

slender thistle
#

One of reasons why there should only be one person helping instead of all at once

quartz kindle
#

you have to do .split(" ")

#

with a space

rustic veldt
#

@quartz kindle if you have teamviewer can you do it from there

quartz kindle
#

no

blissful scaffold
#

Tim explained it very clearly

rustic veldt
#

command in the upper floor @quartz kindle

quartz kindle
earnest phoenix
#

U forgot a space

#

And in args.join('') too

rustic veldt
quartz kindle
#

....

#

no

#

inside

#

the ''

earnest phoenix
#

Between the two '

slender thistle
#

Shit is bad when Tim is facepalming

rustic veldt
earnest phoenix
#

Click left

quartz kindle
#

jesus christ

slender thistle
#

Inside the apostrophes

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

@rustic veldt what languages u talk

blissful scaffold
#

Even spoon feeding won't be enough

rustic veldt
#

leave a blank of cut marks

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

Do you speak Turkish

rustic veldt
#

Turkish English

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

Yeah you don't speak English well I can tell

indigo geyser
#

a new language

#

Invented by her/him

late hill
#

This isn't a language barrier

#

Arrows are global symbols

#

That any regular person can understand

rustic veldt
#

thanks

#

thanks

#

❤️

earnest phoenix
#

If args[0] also has "-" and the rest of the args[0] other than "-" is under one command of the bot, the bot will send a message

#

(djs)

late hill
#

Is this a question

earnest phoenix
#

yes oliy

proper inlet
#

Hi, I'm trying to do a clean command. But I get an error

//The code part in which an error.
message.channel.messages.fetch({ limit: 5 /*some number*/}).then(messages => { message.channel.bulkDelete(messages)})

Error code :
TypeError: message.channel.messages.fetch is not a function

#

(discord.js)

summer torrent
#

what is your djs version

proper inlet
#

11.5.1

summer torrent
#

fetchMessages() for v11

proper inlet
#

Thx

summer torrent
#

I am using join(",") for convert to string. How can I remove this commas?

grim aspen
#

.join(' ')

late hill
#

That looks like you have a lot of empty elements in your array

summer torrent
#

yes

late hill
#

You could filter the array

summer torrent
#

I use replace() for translate

#

and remove unneeded elements

grim aspen
#

unless there's a way to do it with including \

summer torrent
#

I'll try

blissful scaffold
#

maybe filter out the empty elements in your array before joining it?

late hill
#

which is as simple as .filter(element => element)

#

because an empty string will resolve to false

proper inlet
slender thistle
#

Very highly doubtful

late hill
#

But if the input data is provided by you, you might want to edit that so that it simply doesn't have that many empty strings

grim aspen
#

not that i know of

blissful scaffold
#

bots can not stream video on discord as far as i know

#

it is not documented in the api documentation

vital lark
#

don't think it'll happen

#

would be hard to implement streaming on a bot account

blissful scaffold
#

discord probably also realizes that it will mostly be used to stream movies

vital lark
#

pirated movies

blissful scaffold
#

yeah

vital lark
#

ah yes, love doing that on Discord

blissful scaffold
#

I think the only thing related to discord streaming that bots can do is checking if someone is live streaming

#

bots can't receive or send video data

mint storm
#

guys help me

#

please send it to me

rustic veldt
#

hello

#

help me

#

what's wrong with the bot

#

@summer torrent

restive furnace
#

"MODULE_NOT_FOUND"

mint storm
#

can anyone fix mine

restive furnace
#

you giving it wrong directory

#

@mint storm error??

mint storm
#

yes

#

Loading 13 commands...
1: clear.js loaded!
/home/runner/MusicBot/global/functions.js:16
props.help.aliases.forEach(alias => {
^
TypeError: Cannot read property 'forEach' of undefined
at jsfiles.forEach (/home/runner/MusicBot/global/functions.js:16:32)
at Array.forEach (<anonymous>)
at fs.readdir (/home/runner/MusicBot/global/functions.js:12:17)
at FSReqWrap.args [as oncomplete] (fs.js:140:20)

earnest phoenix
#

the property doesnt exist or isnt an array

restive furnace
#

and you just could do on the command handle if (cmd.getcmd(name.includes(arg0))

mint storm
#

thx

viral spade
#

How do people create the users rank images with xpbar etc`?

#

in discordjs

late hill
#

image manipulation

#

with something like canvas

viral spade
#

and is there templates, or do i have to like set every pixel?^^

late hill
#

I mean

#

You can load existing images into it

#

Just set their position

viral spade
#

sure but the xpbar is dynamical

late hill
#

maybe resize them

#

the xp bar would just be drawing a rectangle

#

or 2 I guess

viral spade
#

ok thx

late hill
#

There are fill options

#

that's canvas

#

but there's other packages you could use

#

which may be better

#

don't know

viral spade
#

i see, so i gotta do it by myself. i was wondering if theres templeas in the form of code where i could only set like rank.xpprogress = '33%',rank.image = 'http..' and i could choose from different templates how to render it.

late hill
#

Well

#

I don't think canvas has that by default

#

But it seems pretty simply to make a function like that

#

So perhaps someone has already done that

#

In a different package that uses canvas as dependency

viral spade
#

sure its simply to make a functionf or that for 1 template,. but not 20 different to try out.

#

why people use wordpress and not always do from scratch... same reason 😉

late hill
#

Well

mint storm
#

@everyone is there any jda host [paid-free] anything

late hill
#

Especially if it's your own function

#

You can simply use variables for everything you may want to change

#

Meaning you can very easily try out different things

#

You just have to get the base running

uneven silo
#

How i can add commands?

restive furnace
#

@mint storm no. there are java hosts and vpses/vdses that supports java, example: amazon aws (low ping to disc)

rustic veldt
#

hello

#

help me

restive furnace
#

still it wont exists on that directory

late hill
#

type ls

#

and show the output

rustic veldt
late hill
#

you called the bot file app.js ?

#

And are attempting to run it with bot.js?

#

use node app.js instead

rustic veldt
#

sorry

#

thanks

late hill
viral spade
#

"Meaning you can very easily try out different things"
Thats nit the case because design is not that simple. if you want different designs it is not useful to put it into variables. The computer cannot automatically know what margin looks good on the human eye if i put the xp bar vertical, where to place the image best when the bar is vertical/horizontal. Theres too much possibilities.

#

@late hill

late hill
#

I see

#

Basically you want someone to do the design for you

#

Or give you some options to pick from

viral spade
#

yes, like wordpress does for website creation

rugged minnow
#

is there a way to get whoever added the bot to the guild with discord.js?

blissful scaffold
#

@mint storm JDA is Java, you probably need a VPS where you can install and use Java

slow garnet
#

How do you let your bot send custom emojis?

desert heron
#

what lib lol

slow garnet
#

Discord.js

shut cipher
#

Is someone here literate in JavaScript and python and could translate something for meplease

west raptor
#

Sure

#

I can read but can't write python

shut cipher
#

poop

#

Well its this

#
let statuses = [
  ["LISTENING", "${totalMembers().toLocaleString()} users"],
  ["WATCHING", "${djs.guilds.size.toLocaleString()} servers"]
], num = 0;
setInterval(() => {
  if (!djs.status) {
    djs.user.setActivity(eval(`\`${statuses[num][1]}\``), { type: statuses[num][0] });
    num++;
    if (num === statuses.length) num = 0;
  }
}, 1000 * 10);
#

Its to make bot status switch between servers, members and prefix

#

I cant figure out how to do it and cant find anything online about it

#

i had a friend give me the source for their bot @cobalt ridge but its in java and my bot @fringe jungle is in python

west raptor
#

I don't know the equivalent to setInterval in python

#

cc @slender thistle

shut cipher
#

poop

slender thistle
#

Uhh

#

while True: with asyncio.sleep

west raptor
#

Also holy shit that is code makes me brain hurt

#

Js*

slow garnet
#

How do you let your bot send custom emojis with Discord.js?

grim aspen
#

bruh

west raptor
#

<:emoji:id>

shut cipher
#

<:emoji:id>

west raptor
#

Iirc

slow garnet
#

doesnt work.

shut cipher
#

uh

#

@slow garnet what emote are you trying to do

#

for example

#

=

slow garnet
#

Wait. It worked

#

Idk why it didnt work earlier

shut cipher
#

You might have put a space between the emote and the ID

blissful scaffold
#

if it is an animated emoji then it is <a:emoji:id>

slow garnet
#

Hm Im not able to use animated emojis, and does the emoji have to be in the discord server for it to work?

quartz kindle
#

the bot has to be in a server with the emoji

#

doesnt need to be the server where the message came from

slow garnet
#

Thanks

blissful scaffold
#

you don't need to have nitro for the bot to use animated emojis

#

bots can always use animated emojis

west spoke
#

^

grizzled raven
#

hey sometimes messages the bot sees doesnt get cached, is this just me or

valid frigate
#

hi y'all jda is being a fucker rn, i can't log in to discord because i never get confirmation in the console

#

i recently updated a bunch of packages and built it, and it should work but doesn't for some reason

#

is this a library bug? jda patch version 100 was recently released so idk lmao

blissful scaffold
#

Maybe look on the JDA discord to see if there are more reports, if no one is complaining then I think the library is fine

vital lark
#

@grizzled raven you'll have to fetch it

grizzled raven
#

no like in general

vital lark
#

wdym

grizzled raven
#

not after restart

vital lark
#

it only caches online users iirc

grizzled raven
#

your bot not caching messages even just as they are sent

frozen cedar
vital lark
#

oh

#

what

grizzled raven
#

ok so

#

i checked a guild that my bot is in and i mapped all the channels's messages, and all of them were ```js
Collection [Map] {}

meaning no messages in that channel were getting cached even after messages were sent
that was the case for all channels except a few
is this because too many messages are cached on the bot?
mint storm
#

-bots @mint storm

gilded plankBOT
modest maple
mint storm
#

ok

fluid sapphire
#

What`s wrong with that? ```js
module.exports.run = async (bot, message, args) =>{
if(message.content === "#test") return;
message.react("🗻");
}

gilded plankBOT
#

tickNo This user has no bots

west spoke
#

quite a bit

#

I barely know js

#

and I know that's wrong