#development
1 messages · Page 1492 of 1
Why do you think I linked you cog_unload?
A solution that could take literally a few seconds if you knew what you were doing
yep
but sure, you can just keep restarting your bot
@heady sable I am trying it aswell lmao
mines works
but it cant send dm
when it doss it errors
and says theirs another webhook
Just restarted my bot completely and it created a new webhook under my port just fine
soos can you help me?
Show your code
import dbl
import discord
from discord.ext import commands, tasks
import asyncio
import logging
class TopGG(commands.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.token = 'no' # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path='/dblwebhook', webhook_auth='password', webhook_port=5000)
# The decorator below will work only on discord.py 1.1.0+
# In case your discord.py version is below that, you can use self.bot.loop.create_task(self.update_stats())
@tasks.loop(minutes=30.0)
async def update_stats(self):
"""This function runs every 30 minutes to automatically update your server count"""
logger.info('Attempting to post server count')
try:
await self.dblpy.post_guild_count()
logger.info('Posted server count ({})'.format(self.dblpy.guild_count()))
except Exception as e:
logger.exception('Failed to post server count\n{}: {}'.format(type(e).__name__, e))
@commands.Cog.listener()
async def on_dbl_vote(self, data):
logger.info('Received an upvote')
print(data)
print(f'Someone voted !')
channel = self.bot.get_channel(794536699246018571)
await channel.send(f'Someone voted for the bot!')
def setup(bot):
global logger
logger = logging.getLogger('bot')
bot.add_cog(TopGG(bot))
print('Top GG API loaded.')
I don't know what you're doing either but
gonna post 9 million guilds
xd
@heady sable can you help me?
it doesn't print it on dbl_vote
What do you have set on the top.gg website in your bot's webhook settings?
Are you sure your URL is actually reachable for the port 5000 (is the port 5000 open?)?
Nothing, my bot does not have 1000 votes ?
Wait lemme do that then
where can I set that?
ah got it
alr
so
What do I need to set here? @slender thistle @heady sable ?
http://ip:port/dblwebhook
ip is your VPS' public IP address
port is 5000, because webhook_port=5000
/dblwebhook is because webhook_path='/dblwebhook'
^
And password is what I want?
webhook_auth must match with whatever you set in the Authorization field
And I can put whatever I want there?
Sure
alr one sec
So basically to make sure that I understood it right:
webhook_port=5000
webhook_auth = Authorization code
webhook_path='/dblwebhook'
right?
Sure
replace ip and port with corresponding stuff and you're good to go
also remove the ip after dblwebhook
wait, whats the ip?
whatever you use to connect to your VPS
A public IP to the machine the bot is hosted on
ah
alright
one sec lemme get my ip xD
alright, now its saved
alright
now it should work?
let me see
I don't know. Maybe
If you use the Test button, you need to have on_dbl_test listener
Same as on_dbl_vote
Main difference: it's not an actual vote being sent, data['type'] will return test
so async def on_dbl_test(self, data['type']): ?
just data
hmm alright
so this is the code:
@commands.Cog.listener()
async def on_dbl_test(self, data):
channel = self.bot.get_channel(794536699246018571)
await channel.send('Test')
But
like
I have a weird error
OSError: [Errno 10048] error while attempting to bind on address ('0.0.0.0', 5000):
Can you send the full error?
its a bit in german tho
Bleh, Google Translate exists
future: <Task finished name='Task-753' coro=<DBLClient._webhook() done, defined at C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\dbl\client.py:436> exception=OSError(10048, "error while attempting to bind on address ('0.0.0.0', 5000): normalerweise darf jede socketadresse (protokoll, netzwerkadresse oder anschluss) nur jeweils einmal verwendet werden")> Traceback (most recent call last): File "C:\Users\Muaz Ugur\AppData\Local\Programs\Python\Python38\lib\site-packages\dbl\client.py", line 457, in _webhook await self._webserver.start() File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_runner.py", line 100, in start self._server = await loop.create_server( # type: ignore File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 1463, in create_server raise OSError(err.errno, 'error while attempting ' OSError: [Errno 10048] error while attempting to bind on address ('0.0.0.0', 5000): normalerweise darf jede socketadresse (protokoll, netzwerkadresse oder anschluss) nur jeweils einmal verwendet werden
or I can wake up my German friend by spam pinging him
oh no xD
thats the error which is in german:
normally each socket address (protocol, network address or connection) may only be used once
Yeah, right
Missed this little detail in examples
Basically, you reloading the cog doesn't actually close the webhook
and as you probably understood already, a port can only be used by one program at a time
See my last 3 messages in #topgg-api
I should maybe restart the whole bot?
ah
oke
self.dblpy.loop.run_until_complete(self.dblpy.close())
That works, but you could use the cog_unload event to close it whenever the cog is unloaded
alright
let me try
alright
testing time
alright I sended it
I'll wait for a few sec now
Usually it's instant
alrighty
you're trying to send something after you already sent something
this looks like djs + express
im so confused
but its not
who has eval in an express server tho
@quartz kindle good morning tim
its an api
@pale vessel one more thing
br
websocket?
indeed
1000?
yeah
you missed an heartbeat and your websocket closed the connection
took me also a while to get it
yesnt
same
never used it personnaly but i dont trust this type of page
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/home/Discord-Bots/Interception-Javacord-2.3.1/lib/gson-2.8.5.jar) to constructor java.lang.Void()
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release```
This is a Error which comes up from top.gg api through Gson.
how can I fix this?
all ports lower than 1024 are reserved for admin access only
you're trying to use port 300
I’m confused what do you mean by that?
Let me check
@quartz kindle thanks!
Bots running :)!
Guys do you know a way I can make a puzzle to create mute, unmute, unban commands?
make a puzzle?
use magic
language?
pray to discord gods to grant you the powers
JavaScript
No ones really helping me I ask almost everyday
for muting create a Role that got only read permissions (if you want to use it for text channels) if the mute should be temporary use something like redis for storing the user who got muted. To mute the user just give him the role. for unmuting take the role away.
I mean like for the bot @lusty quest
https://discordjs.guide/miscellaneous/parsing-mention-arguments.html#ban-command read this for a ban command
I’ve already read it
where is then the issue?
what happens, if I create a new branch, without commiting the changes?
nobody wants to help you because you actively refuse to use learning resources tim and other people gave you more than 3 times
But I want a mute command where there is no role I’d to be used and can be used like dyno @lusty quest
@earnest phoenix I’ve been reading everyday :/
I’m trying my best
read with understanding then
It takes weeks and months to learn a language.
then get the user and set the Write permission for this user in every channel to false
Yes but I’m not a smart guy and need a lot of help
It sounds like you're just either lazy or impatient.
I’m not I read but I just need help sometimes :/...
Ok but we can explain things for you - we just can't understand them for you
Help me, I'm dumb!
Are you actually dumb, as in, lacking the mental fortitude to code, or are you just lacking the experience and knowledge to understand the code?
Because if you're actually just dumb, the only help we can provide in terms of bot coding is "don't code bots, use those that exist".
if you're just lacking experience, then there's a solution and it's "just take the time to learn javascript and you'll be fine".
Most people that say or think they're dumb, it's just because they're rushing into thinks head first and being overwhelmed by a lot of information all at once. Anyone would be!
i guess the issue is people start coding bots with way to high Expectations. after a few days they get frustrated that it took already 3 days to get started with learning a language
maybe programming just isn't for you
If everyone says this to you, maybe it's time for you to listen to everyone.
I AM FREAKING TRYING MY BEST
It is a very unfortunate truth that not everyone can actually code. Like, not everyone has the ability to understand programming.
If you're trying your best and your best isn't enough, well, find another hobby, sorry.
I don’t wanna I wanna learn this
There’s only gone 8 days and I’ve made peofrsss
Progress
Then go actually learn, instead of randomly mashing the keyboard and expecting other people to hand hold you through every step of the way
i can suggest to limit the time per day you try to learn something new. Humans can only process a certain amount of Informations in a short span. if you Hammer your brain with the entire Documentation for a language you only get headache and dont learn anything. this helped me a lot
Mhm if I had a pc sure
like I said, it takes weeks , months to learn a language. not 8 days. WEEKS. Months.
^ people go to college for this type of stuff too
I've been doing programming for over 20 years.
What the fuck
And I still learn new things every day
Are you 30 then?
I'm 39.
What, you think coding bots is reserved for tweens? lol.
you would be suprised how old people here are actually
I’m just 45
no you're not
Lol jk
it isn't funny
you're just being annoying
How 10? The discord tos is 13+...
lol the same way pornhub got users that are born in 1387
can we continue this discussion in some other channel?
You really need to learn a lesson here: stop thinking shit takes a couple days to learn. This isn't like learning how to make a minecraft house. This is complicated stuff that takes a long time to learn.
Never had Minecraft

i would suggest to lower your expectations. take it back a notch and try to learn every day a bit. just forcing you throu it wont help.
Tbh you’re only the first chill I’ve seen
also just a tip, programming requires good competency in logic problem solving, if you can't find yourself doing that (which from the last few days i've been reading your messages, you can't), drop it and find another hobby
Here: #development message
nope. 924
Do I read all the damn documents?
You need to go through at least ONE course.
completely. from start to finish. the entire thing.
JavaScript
dont read all at once. take one page, read and understand it.
then take a break.
Alr I mean in one of the link there is like 80 documents @umbral zealot
if its not much maybe 2 pages.
Yes. Courses can have hundreds of pages
again, this is Complicated. It's not trivial.
It's not as simple as connecting wires in electrical, for god's sake. Programming is a complete science you can spend 10 years in school learning.
Damn kids thinking they can master something that literally takes years to learn, in a week.
maybe you find somewhere else something that teaches you some programing. Ive started to learn a bit Lua back in 2013 bcs ive played a lot of Gmod. the knowledge that ive gathered in my 3k hours in the game helped me a lot when ive started to program my first bot 2 years ago.
i guess this above is badly explained.
but i hope you get the point
Why tf are you so pissed?
I'm not pissed I'm being authoritative and insistent in the face of dunning-kruger tweens.
anyone can code
anyone can program (kinda)
not anyone can develop
because that takes time, effort, and skill
at least for my definitions
I can also say a lot of stuff that will offend you
smh
maybe just reading docs is not really a way for you to learn stuff. i have this issue, so ive looked in a few Github Repos of bots and tryed to understand what happens if a certain part of code gets executed. bcs of my prior knowledge with programing ive got quite fast into coding my first bot.
@lusty quest yea you’re right I’m not really a guy that likes to read
everyone can code
not everyone can program
I like to get straight to the point
what do you define as programing?
logical thinking & problem solving skills
coding is a wide term for just knowing how to bash a language's syntax on your keyboard
yea
I.don’t.have.a.pc.I.repeat
its like how anyone can write but not everyone is an author
funny enough i do Programing for Milling machines at work. and the problem solving there is the retarded software we have to use for writing the programs
Same
i know atleast 6 people here who coded working bots on a phone
A programmer without a PC is like a cook without a stove.
no wonder you're having trouble.
voltrex master
I'm not saying it's impossible.
voltrex adapted
i mean all programming takes is hella freetime
I'm saying it'S even harder, so if your talents are less, it's going to be nigh impossible.
true
i learned python from messing with template bots
i forgot how i learned js
and ts is like python js so that was easy
@trim saddle how can you find template bots?
github
i just threw myself into full stack development and started making random ass apps lmfao
I started with my bot
GitHub what do I search in there? @trim saddle
ended up browsing a fuckton of documentation and slowly became fluent in a lot of languages
but css is shit
I started with bdfd
discord-bot tag lol

@crimson vapor yes
channel names are unique
everything is /channels/ID/action
not join
join is fucking /channels/join with name
LOL
Thanks man lol
idc its just funny
thats because channels/:id/join is a seperate thing
it joins the channel by id
if you strictly use bot templates
don't expect to learn
yes?
i had to evolve pass them
so /channels/1/join should join main channel

yea
eta on that?
you can use join by name tho
or work starting soon?
skull
its fun

are you trying to move dbl to vcbl
yes
let me enjoy my holidays
@trim saddle why are your DM’s closed?
because people like dming me bullshit
user.avatarUrl
its not null?
Can I dm you?
default avatars = cdn(chat/avatars/{id % 5}.png)
you'd have to friend me, but i don't really respond to non-familiars
e.g.
"I don't want anyone else to tell me I have to learn I want someone to spoonfeed me"
sigh. nice help vampire.
just tell me what you need to tell me here
check out jSensors, i used it a while back to monitor minecraft server impact
what
why did the reply go poof
oh
@trim saddle I just need help with bot templates
remainder of ID / 5
deleted message
makes so much sense
@earnest phoenix please read this: https://communitymgt.fandom.com/wiki/Help_Vampire
just use the modulo operator
this is the dev channel
you could use a time series database and stuff like telegraf
tell me here
I can’t find the uh templates for the bot
ty for explaining that veld
anytime :D
jSensors?
btw @crimson vapor
yea
it doesn't seem to be actively maintained anymore
channel members working again in dev
the sidebar?
yea
@umbral zealot stop wtf
how do I see it
hmm
not deployed yet
eta on deploy?
no eta
alr
i just wanna vibe

10/10
what does it do, is it like a tempiture mesurer cuz i dont need it, Paspberry Pi has a command "vencmd measure_temp" or whatever
yikes
What I'm mainly worrying about is can a bot use a Terminal 🤔
what do you mean by that
a bot is not anything special
you can code a bot any way you want
it's a part of your application
so can it open a terminal and enter measure temp?
and yes, you can launch the terminal in almost any language
what about typing in it
can't you just get a lib that does the temps for you?
then you have all of them
on every most devices
jSensor then?
no idea
ill check it out
ok
only python can do stuff like going somewhere and typing something right
@trim saddle I love you man so much! You’re the best this will help me so so so much :(. You’re really a true nice guy!
No homo Lol
how do i remove the scrollbar from something without removing it for the whole page
like just remove from adiv
overflow
The overflow CSS shorthand property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
overflow hide?
like i want it to still be scroll-able
just no scroll bar
or more even, rn its like a second scrollbar in the sidebar
how can i sync it with the page scroll
indent your code properly so that you can see where each block starts and ends clearly
be honest you copy pasted code didn't you? 
Does anyone have a simple css bot description template because I am extremely bad at css
A CSS bot description to design what? That's a very broad range where Markdown would probably be satisfactory.
what all are the scripts from where you can steal a token from a bot on eval command?
client.token and ?
idk man
does anyone know?
Depends on your code

If you have a TOKEN env variable, another way would be process.env.TOKEN
But as i said, it depends on what your code has
alright
🚪 🚶♂️
loool
like how do i hide the scrollbar from a div?
i still want it to be scroll-able, just without the bar
Pretty sure there's a webkit property for that
ye
there is
but can i put the webkit in a class?
like for a div only?
not for full page?
@pale vessel
/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.example {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}```
There's this
Use your selector
why do you want to hide it though
wouldn't it be smarter to hide the overflow on the body and then set overflow to auto on a parent container
I don't think hiding it would be good for accessibility
like this is it rn
so basically i either, want the scroll bar on the sidebar to sync
or for the scrollbar to be invis / nonexistant
like maybe when you scroll down the page it also goes down?
^ ignore
it doesnt matter that much
is https://github.com/veld-chat/desktop-client the api for the chat-app thing? @humble gyro
heh
const fetch = await client.channels.cache.get(find.queueChannelID).messages.fetch(find.queueID)```
@drifting wedge https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs.
work around this
I will continue to use BDFD ...😢
I just have no other choice ...
how?
I was going to use dbd.js but at first I don't understand anything although it is not much of a problem and second I have no place to keep the bot
how do i make a ping command in discord.js? all I know is python and this clearly dont work
@earnest phoenix 😳 no problem i guess
Use glitch.com
@pale vessel you think discord would have a meltdown if someone made 2 channels at exactly the same time
glitch banned services that allow you to run discord bots
in fact you're in violation of tos if you try
Wait i already made bot on glitch.com
Still illegal
you're not supposed to be running bots on glitch anymore
Oh no
it's meant for web apps
Heroku also isn't an option since they also actively fight against bot hosting there
They just not banned like glitch
I made bot there oh noo i founded it on YouTube
Hello youtube founder
So basically I'm f*****d
Well, vps ain't expensive
Repl.it has confirmed that they allow ping services and such.
I literally have a word from the CEO about this being allowed.
Wait can i get arrested for that
Glitch.com would simply shut down your bot and code if they see you're using a ping service, as it's against their ToS
Noone is gonna punish u at all through law enforcement
Im deleting account on glitch that will help?
Glitch started off as an open free platform but when they finally decided to add their paid service it was too late and they had to go full reverse impulse on everything they could - otherwise they would have simply shattered.
Take the time to move your code and bot to repl.it, you can follow the guide I linked from that issue above, assuming you're using discord.js (or, really, just any nodejs library to be honest)
Glitch is still in collision course lul
Nonetheless, you'll eventually need to move out of free hosting depending on bot growth, just keep that in mind
There's only so much you can do while free
See the difference between shattering at full speed into a planet and "still on a collision course" is that if you can reduce your speed low enough, at least you get some spectacular imagery that actually survives obliteration. Like this: https://techcrunch.com/wp-content/uploads/2020/12/landing-explosion-starship.gif
hi fellow 1am people
weird development conversation
Go to bed 😂
can anyone try to explain to me why discord is broken
If it wasn't broken it'd not be called discord
my code down there is broken too but I wanna fix that before anything else
It's 1 14 am for me hehe
same hehe
Is it possible to deploy a react app (with express) to like <ur domain>/dashboard
yeah sure,a ctually you can, Carlo.
I decided that it's hard making bot I'm shutting it down
You "can"
how
so is there any way to make discord not broke
However, your dashboard will have to communicate with your bot through an API, so, not only do you have to server your react's build folder from Express using static(), you will also need to have express running from the bot's code itself, in order to have access to the bot data.
React doesn't like too much being embedded in a webserver
everything works
Oh react doesn't care
REact is front-end, as long as you serve HTML and the JS it creates, it doesn't care what it's served from.
So... change the route?
lol
I shuted down the bot
just like that
ooh lol
like this?
this.app.get('/dashboard', (req,res) =>{
res.sendFile(path.join(__dirname+'/../client/build/index.html'));
});
(though, as a secondary change, your other files like the JS and CSS, might require you to change the paths in your static serving files)
will see what it'll give
if not, then i'll just change everything on frontend
the routing
Pretty sure thats not necessary
It depends on the setup.
don't think so either
I mean, react router dom works fine too so any route should work
how does react-router-dom work if you don't get your JS bundle? lol.
Thats kinda my point 
Your point is vague and imprecise because I'm saying it wouldn't.
Hmm k
Bruh, there's a dude asking for a copy-ready example of usage for my lib
Yeah, readme.md has a full example of usage, and the lib itself is abundant in javadocs
Asked him to show how he's doing it, now gotta wait for a reply
Not to say copypasting it would be useless since it's a pagination lib 
ah yes.
async function subscribe(message) {
if (!usersToNotify.find(x => x == message.author.id)) {
usersToNotify.push(message.author.id);
saveCurrentPrice();
await message.reply("Subscribed to price updates!");
} else {
saveCurrentPrice();
await message.reply("You're already in the database!");
}
}
What would be the proper way to delete the .reply after x amount of time?
I've done message.delete(1000) - gives an error about it not being an object.
I've also done
.then(message=> {
message.delete(10000)
})
same error.
Supplied options is not an object
ah a properly formatted question, im scared.

didnt know delete needed an object for its options
message.delete({ timeout: 5000 })
Guess I could have just looked at the docs
but ya, wasn't expecting to need anything like "Timeout" in it.
But hey, thx 
its so much easier with properly formatted questions 😄
I have a bad habbit of googleing my things before looking at docs for whatever reason
me

i like docs. its like a bunch of puzzle pieces with logic, almost like its documentation or something.
But how will you know how to read the docs if there's not a doc about it?
a doc doc
A doc about reading the docs
question
whats the embed url attachment buffer format?
it doesnt go into url
files?
Wdym? Like, attachment://name.extension?
still works
Send file normally
its not local though
The embed will pull it
it's fine
Just send the file + embed
huh?
Like
are you using the embed object or what
If the embed image's url is attachment:// and you send a file with the same name, it'll pull the image into it
You can convert the buffer into bytes then send it
you have two files property?
There should be only one and the one that's outside embed
again, it should be in image
not in files
files is outside
i want it in the embed
that's how it works
aight, gime one example
send({ files: [{ attachment, name }, ...], embed: { image: { url: "attachment://image.png" } } });
aight, lets see
wait wtf
does it not send normally
?
i would've assumed it sent into both the image payoad and the message one
Like, all it needs is the image to be sent with the message
if you use it in embed then it wouldn't send it as attachment
It doesn't matter where it came from
@heavy anchor do I make it in a new project or in my bot project?
Make what?
A website for my bot
Both will work
Okay who changed my name
Depends on the size
Both can work, but I recommend a new project
Yea same
Yes
Keeps stuff organized
Okay in a new project
Hi, how would I do something to get the words between certain charactrs?
Input: xheyxxhahax
Output: ['hey', 'haha']
replace?
.replace()
But you'd still need to separate it into an array
Regex will be smaller, but not necessarily faster
I know what replace is but i dont see the way I can use it
Replace duplicate delimiters, then split
why not just split the string by x and remove all empty elements
¯_(ツ)_/¯
if you don't want to use regex
That could also work
What im traying to do is find emojis that hasnt work and bring some... example
User message:
Eating some burgers lol :burger1::burger2:
Return:
['burger1','burger2']
Ah the magic of javascript.
The replace idea was to minimize possible empty indexes
TypeError: Cannot read property 'roles' of undefined
I need help, it's from the event called "messageReactionAdd"
User doesnt have a member
Regex will be a hella smaller for that
Does anyone here
Use guild.member(user)
it will be just user?
:.+:
I need your help please now I have bot I finished it after 2 months work now I will make a website for it but the problem now how do I connect my bot to the website like in the website you can change the prefix and like every bot website please help me I really will appreciate if you can help me
How do you do that
TypeError: Cannot read property 'roles' of undefined
I need help, it's from the event called "messageReactionAdd"
Not u, was showing the regex for void's issue
@lyric mountain how do you do this g
@lyric mountain no it's another thing
wdym?
Do you mean regex?
@lyric mountain yep
Why do u need regex?
@lyric mountain to share my code 
you mean this?
use ```
hi
TypeError: Cannot read property 'roles' of undefined
Check a markdown cheatsheet
Search on google: "Discord markdown"
Memes aren't. Always dream s
Memes aren't always open source lol 😂
Guys how to Make an API call to the bot
Discord.js ??
im making a ticket bot what should i call it
Boticket
Not Another Ticket Bot
Ticket Yeeter
its mostly for practice since i dont know what else to do
😎
nah
i want to make a discord bot
why not link the 2?
my bot leviathan works on 3 different platforms at once
the SAME bot
really?
twitch discord and youtube
what does it do though
its meant for streamers
Mine is discord-twitch only
to cross-chat between different apps
also minigames
and all that, but they carry values on all platforms
!gamble 20
now your balance is 20 on discord, twitch and youtube
!redeem Kit
now your balance is 10 on all of them
Mine has a card/drop spawn system, it drops both during my streams and on servers
try doing stuff that wasnt done before
mine also has drop system
creates spawn for 20 seconds on stream/discord
And some smaller commands like ping, 8ball, whatever for twitch side
with limits per server
rn?
Twitch chat is way too limited for most of my cmds
hmmm lets see
yes
55k streamers use it-
its in 55k streams, correct
whats twitch slave
thats a lot of streams
the other one is a premium type of deal, nothing to worry about
i got my bot verified on twitch before i got it on discord
talk about ironic
wow
specially because it started as a discord bot
people must love it
theres some commands there nobody else has
!price for example
which fetches the price of a game
also the speed at which is sends some of the default commands is a lot faster
since im using caching
most bigger bots use fetching
i remember sending this somewhere
I was just able to properly run some Latency Test on some twitch bots.
My bot won every single time in response time against Nightbot, Moobot and Streamlabs.
This is all due to my library cache which cuts down on API calls done on Twitch which massively reduces the latency in command response.
Just wanted to share the results of Caching vs Fetching
Moobot: [1006, 869, 1011, 769, 799, 789, 961]; mean:886ms
Nightbot: [950, 876, 1002, 1008, 788, 766, 789];mean:882ms
StreamLabsBot: [1131, 1004, 1102, 894, 751, 799, 978];mean:951ms
My bot => Leviathan: [681, 412, 512, 551, 671, 413, 409]; mean:521ms
damn
anyways i would make a twitch bot but i have no idea how
idk the first step to and idk where to learn
dont
twitch isnt easy nor begginer friendly
its some of the messiest API's i've dealt with
you're in for a headache with twitch
And the chat is heavily limited
all the libs availably for js (tmi and tjs) are not good for scaling
i use python
you want a bot for 10 ish streams?
fine
go past that and you'll encounter issues
by the bucket
yeah
ratelimits being funky
never used an insta bot
not even going to mention their docs which are absolutely garbage
i dont even think there ARE any instagram bots
apart from the ones that auto-like shit
yeah
i doubt theres a discord bot -like instagram bot
ive seen that
which replies to commands and all that garb
which is why im telling you
try it
do something new
something that wasnt done before
doing the same stuff that has been done and perfected before is dumb
dont try to reinvent the wheel
go in an area nobody is in
thanks for the advice
np
i started with the genshin bots before they started being a thing
now its getting flooded with bots, but i started/hoped onto the train before it was trending
so now im atop of it
i'd disencourage doing another genshin bot, specially cuz me and the other 2 big bots are quite complete already and hard to compete with
whats ur bot
Klee Paimon and GenshinUtils are the biggest ones so far (excluding the wikis)
mines is GenshinUtils, which is an actual genshin bot
the others are just discord bots themed with genshin
whats Genshin
your average Joe discord bot with leveling system but they call money primogems and they call it a Genshin Bot, its quite sad imo
Shiro, she's a multi-purpose bot with card collecting, but what's the real train is her TCG
Genshin Impact is a game
Penny is a bot for a friend of mine, check that
you'll likely see your biggest competitor
PennyTs
For tcg?
But like, not tcg info commands, but an actual game
correct
Lul
wiggy has their own cards generated
im doing something similar but its going to take a day or two to be released
i cant talk about it till then
i've started seeing a lot of people copying some of my commands
Yeah I guess
I also got into the habit of only talking about my stuff after it's complete and implemented
same
though in this case its quite a big thing
so i doubt there'll be anything soon
hmmm in fairness someone could hard code these and make a make-shift one is maybe 3 or 4 days
though good luck updating the code on every new genshin update
My current code roadblock is i18n
I'm having an issue where I can't connect to my db, everytime I do it, it says this
And after collecting all the strings I still need to find people to help translating
im working more on the performance and efficiency of each command rather than keep adding a shitton of useless commands like the rest of the bots
so my command list is on the lower end
kinda like Tim
noy many commands but each command is well done
and complex
Mine has a lot of commands, but most are linked to some major module
Like, the card collecting module has about 10 cmds
Pixel canvas has about 5
well, heres the thing right
leviathan on discord has around 80 commands
then theres about 50 on twitch
and 60 on youtube
Lul
yeah, not fun
im tuning it down now and focusing on each command to be good and well crafted
I'm planning to rewrite my bot's source code once the menu update kicks in
how do i react to a message by the id?
fetch message then react to it
<channel>.messages.fetch(id).then(m => m.react(reaction))
or see if you have the message cached
if you do, even better
ok, thanks
np
anyway, yeah, im going for low command count now
users cant handle that many commands from the back of their heads
i tried
const channel = message.channel
let a = channel.fetchMessage("793982002889621504")
a.react(":island:")
but it says that a.react is not a function
Oh my
i told you above
@ember lodge
I'll see
Actually, stopping to think, it's better if I leave the i18n for the code rewrite
I'll change a bunch of stuff anyway, current code has tons of inefficient sections from when I started deving
Erwin did you read PoggersDB?
You tell us. What error are you receiving? What is supposed to happen, and what is happening instead?
how do i get the data from a <input> with a type=file and accept=image/*
Are you maybe redefining the variable resolve somewhere? Because require.resolve is definitely a thing that exists, and it's a function.
It looks correct. Try logging require beforehand. It should show the function and object attached to it.
Unless you're using an archaically old version of node
Like, 0.3 old
Ok





