#development
1 messages · Page 312 of 1
by not using youtube, or having a partnership with them
it's against their tos to stream music via third party apps, so you're one C&D away from trashing the whole module
So how do popular music bots nowadays handle that?
see my previous msg
And mine. A lot of bots don't use YouTube. You can use a YouTube url but it may play audio from a difference source like Soundcloud ect
hi miyu :D

but youtube seems to have the largest database of newly released songs, spotify is the next but the web api only provides like 30 secs of audio
cuz they're like, the second biggest site in the web
You get YouTube audio to work right? You get to 75 servers and have to do the whole verification thing.
Then what?
Discord sees you're using YouTube and BAM
denied!
Then another thing. Assuming you get passed the whole verification thing. Anytime YouTube changes something with their cypher, you'll have to tell your user base that YouTube is disabled until LL or who ever you're using to get audio releases a fix. This will be a consistant thing you'll be doing.
🥹
They got denied iirc
okay thank you
tempted to buy claude pro
I do
It's lowk worth it
Purely for the design standpoint
It's nice being able to generate mockups quickly
and tweak them in real time
its useful, dont see the use for the bigger one yet but pro is pretty well limited where its not too little (atleast for me) but not too much
from what i heard, Claude is okay for anything below 1k lines of code if its anything more than it would drain u quick at least that's, what i heard.
lmk if u can edit code over 3k lines with it
i wanna know would it be worth it
cool heavy content bot i made with a dashboard, docs and over 1k commands, feedback? anything i should change? doesnt matter if its small or big anything will make it better.
small thing that is kinda personal, style your scrollbars
Also don't override the user cursor with that circle, it feels weird and is kind of bad ux wise, especially if at some points like on buttons and such cursor comes back
oh my i cant believe i forgot about that
true, i did notice that, ill keep the cursor normal except the main page and docs as they have no effect on it
thank you though, helps a bunch
i thought it wasnt as bad as the free plan 💀
reason why i wanted to is because i run out of the free plan usage when i tried to get it to create a single markdown spec sheet for work
it didnt even finish doing it
lol
Hey
@dry ridge none of that here, thanks 🙏
i love how claude happily accepts when its wrong meanwhile chatgpt goes into a full gaslighting campaign as to why you are wrong
hmm
i dont understand what kind of error is this
my bot has admins permission and also i have given a admin role to other account
but still it just sticking on this 1 until and unless i have given an owner role to it or to the user!!!
hope i explain properly
i have even ask the claude of find the error and fix it the issue!! and it does fix it but still i am getting the same error!!
is it something that i am not giving the proper permissions to a role??
did you enable message intent on discord developer?
hnmm, wait
k
have you tried your bot on other channel
i think some permission not enabled yet, why not give administrator role
and i try it
with that its working!! if i gave the admin permission but with admin role its not!!
wait let me create a new server and try in that
i give you an update!!
Hi ya found the error turns out it was permissions error!!
really sorry i gave you trouble so much!!
this wasnt working before
i gave the role a proper permission!!
Status: Resolved (accidentally)
Severity: Critical → Catastrophic → Somehow Fine
lmao this is so funny
Been working on my mod bot to detect scams including images and it seems I have amassed a bit of a collection (there's a lot more)
Nice keep working
Very cool!!!
You should try to run OCR on images uploaded so you get raw text - might be easier to train some sort of model on :)
This isn't using Ai at all, but the thought had crossed my mind. It's just user behaviour based.
Like, if someone sends the same message very quickly based on char count in another channel, it's likely one of those telegram or "I WILL HELP YOU ON THE CRYPTO MARKET" scams.
Or the same image(s) across multiple channels. Those filenames are all pHash strings so comparing what's sent across other channels is really easy
And obviously some banned sequences that would be the same format as like steam scams, though that seems to have gone out of fashion
Yea but they always can change their behaviour. This is another version of mr beast scam because first one was using discord attachment urls, second one was using imgur links and now they are sending attachments but the number/content of them or message content is also different sometimes
I have seen 3 and 4 images scam and sometimes there is message content such as "bro" or "OMGG"
Sometimes they even send only one message on the server
If Discord embeds it, you can just only care about the attachments and embeds
i posted something similar before but im near the final version of my bot and i really need feedback on what could be changed and what maybe i can add/remove etc, i would appreciate it, even little details matter.
my lavalink suddenly stoped working everything was working a night before but next day there is no audio bot accepts the songs joins vc but no audio i tried everything updating lavalink plugins but nothing works and also both lavalink one on my pc one on the vps both stopped working on same day is it some kinda ip ban ?
482 commands wow
yes, and always more to come. fully functional dashboard too
is it out yet ?
yeah, im actively looking for people to test it to see if they can find errors or just casual use
i can dm you a key
what are you using for music if you dont mind telling me🤔
lavalink
i can try
why is mine broken 😭
not a ip ban lol, youtube pushed an anti-bot wave and it basically kills audio while keeping the bot able to join + queue. both your lavalinks died same day cuz it's youtube-side, not yours.
fix: update the youtube-source plugin to latest, generate a fresh poToken + visitorData (use https://github.com/iv-org/youtube-trusted-session-generator), drop them in application.yml under plugins.youtube.pot, restart. if still silent, try dropping WEB from the clients: list and keeping ANDROID_VR + MUSIC + TVHTML5EMBEDDED.
usually back in 24-48h once the plugin gets patched. happens every few weeks.
wow thanks mate
no problem, if you encounter any other type of issue just dm, my music settings are already all functional and really polished
Ohhhhh send me the key i can try
yep
Guys check this bot, it's a basically s calling bot where servers can call each other without going to the serves and many features coming soon!!
whats the best way to implem,ent pagination in components v2?
since now the section container etc are passed into components, you have to pass the buttons everytime on edit?
select menus imo
Tf. Is there an example? Couldn’t find any
Hmm does it persist message edits?
Are you re-attaching the select menu with every edit?
Calm down im reading the code because I forgot
okok mb
no rush. Thought you didn’t see
You do need it in subsequent edits as you can remove buttons
But this is if you supply a components array
but in order to use components v2, you cannot use content or embeds so you must supply a components array
Yeahh, thought so. Components v2 is forcing you to use components array right ? So everything is overwritten
Alr thanks
Yup
how so many badges?
what are you on about
you have so many discord badges
Yeah. if you click on them, it tells you what they're for
ik
You have badges? You must be someone. Please accept my friend request
I still don't really understand the appeal of Discord badges to people. Like when I click on someone its just to msg them or something I don't sit in awe at the amount of badges that someone has 
The only badge I actually cared about was early verified bot dev which I used to have until I had deleted the app it was tied to without knowing that was the case. Emailed Discord support about it and they said cant give it back


hey guys i need help related to my bot
Let me bring my magic ball to actually know what kind of help you need
lmao

so I've noticed discord doesnt keep the aspect ratio of thumbnail images in componentsV2. is there any option to set this?
for example 
the thumbnail no longer fits in componentsV2. but when I open the image it shows the full image
easy, run every single message a user sends through an llm and ask it if its a scam or not
hell nah lmao
in the near future that will lowkey be a realistic solution once llms become more efficient and better parallisied
better hardware too probably with chips specifically for llm work
This isn't half as bad as it sounds. We have an AI moderation module which does exactly this (amongst other things) and we've managed to do upwards of 120m tokens for about $10 at the moment, which, due to the size of the community, is a no-brainer.
@frosty gale its just ragebait now
ask grok
it wont give a shit
for a community then definitely possible
you could probably cut down on tokens if you just cut the reasoning generation since its probably not needed though
just caveman
how many tokens did those 4 images use btw? images use a lot of tokens (especially if you dont downscale) but im not sure how gemini handles this specifically
youre being racist ofc how couldnt you tell
there shall be no discrimination between servers in different countries
Unfortunately I don't have the stats from the time this specific one was sent through, but it really isn't much. Gemini 2.5 flash lite is reallyyyy good and cheap
also I asked claude for it now and it gave me a $5/month 1 core 2gb ram server in hk,,,,, with 1mbit bandwidth
lmao
they might as well just not include the internet
Who name their hosting "blue" or "orange" vps
orangevps 😭
i will prob use DMIT
not an ad or anything but its actually affordable
so ye will try if china routing works well
why tf do you even need a license to host a website in china
though tbh this is the future we are heading towards in other countries as well
i find china is just ahead in terms of censorship/oppression rather than being unique to other coutnries
looking at this i kinda wanna add web citations to my local llm
why do you want hosting in China specifically
wondering what the free/cheapest web search apis are there for fucking around
im getting some complaints from chinese users about routing/latency issues
i've made it so a secondary model is used purely for retrieving search results and summarising it. every time a profile is triggered to respond, it undergoes a decision (yes or no). if it decides "yes", it'll proceed with the objective. this summary gets injected into the primary model as a prompt (the user can't see it), providing the profile context before it responds. the cool part being, it enables grounding for practically any model. yes, it adds extra latency and cost, so I use a cheap model like gemini 2.0 flash or 2.5 flash lite
it's far from perfect, tho
It is legit. It was the github runners before github runners. Nowadays, there's little reason to use travis ci over github workflows
Unless you host on other git based platforms where github runners isnt a thing
maybe 15 years ago brocachos 😭
i do wonder if anyone can just put any companies logo on their website like that
You can probably get sued
is it like, getting compromised?
⚠️ do not click anything
im not sure
the navigation buttons directing to javascript:void(0) looks sus to me
it's iframing playtaj.com
where tf did you even get that url?
which one
the asdasd
oh that's random
anything you go is that
even existing repo or idk what it's called
Didnt know that was a thing or forgot. It's been so long since I interacted with Travis
Man, this is so hard to read
Idk why are you making it even harder to read if you are gonna get banned anyways
There you go
@delicate zephyr
lol

hacker tryna install meshagent (software to remote manage your pc)
travis ci's side hustle 😭 🙏
it does briefly show page not found when i navigated to it
yeah then it iframed to that site i mentioned, i didnt trace which triggers it
lmao they also have code to not trigger the fake site if you went on it too many times
i wonder if this was due to some of the recent wordpress plugin compromises
ooohhhh that's why it stopped appearing on my machine, but still appear on vm
OH MY GOD
LMAO
WHOIS lookup for playtaj.com. Find domain name registration, ownership, and technical information.
😭 😭 😭
did bro just learnt hacking from vibe coding
altho idk is that domain compromised too or not, the age is.. old
damn been ages isnce i been here
how's work going my guys
actually turned out pretty nice
anything i should look out for before i make a music bot which plays music from youtube
or should i not make that
uh ohhh
well
what if i keep it personal
for myself
is it still a no
oh well i wont if its this risky
I mean, idk how would they notice the bot but they are fighting with them anyways so even if you want to make it personal it's still breaking youtube tos so it break discord tos too
yeah i would end up banned
also in 2 more days it will officially be a month anniversary for my intent application
still no response
Grainger said he was waiting 2,5 months just to get denied so good luck 
it took me 2 months to get both intents
cuz they didn't read the email at all and asked me for stuff that was already sent together with it
bruh theres no way thats his actual info
bro is very new to this 😭 🙏
Aw
💔
Thanks for the useful information
minor disclaimer, I applied for the intents right after they announced them
so in my case there was prolly a high density of applications
🙏
hi
I'm an Etsy expert with many years of experience working and understanding the etsy algorithm and how it works.
okay
I'm too lazy to check what's etsy
It's a marketplace for all sorts of goods, usually handmade
Very popular with stay at home moms or hobbyists
"years of experience"
Created account yesterday with no pfp or bio
I wonder why
hey who knows it could be someone very busy at work didn't know about discord and their friend told to try promoting there 
It's simple link type button
Look for yourself
https://github.com/milenakos/cat-bot
wth is this, single file bot 💀
guys how do you get ur bot to show commands in here like this ?
since when is that a thing
it doesnt show up
its like top used
my bot has one command /play XD
well i didn’t do anything on my bot and it appeared and it is indeed the most used one
wait for few days
my bot has been in development for 2 years thats why im saying since when is that a thing
i thought i had to do it myself like activity
have you enabled discovery?
yes
as far as im aware, this is a feature that is still getting rolled out amongst bots
not every single bot has it just yet, I believe anyway
it might just be the shittest implementation ever
existed for years and still doesn't work consistently, my bot had commands there for months and then disappeared and never came back
wow thats great 🤣
discord automatically post that but ETA is unknown
👀 UI, Characters, Selector, Movement, Tile Info, Context Menu and Items
The chicken is a placeholder :p
nice c-
ahem. Still thinking about how you're using Unity because lord do I have a love hate relationship with not just Unity, but C# as well
some stuff it does is just so ugly 😭
oh man, wth is our government doing
they give their user lists with each user's instance and exact location
on public endpoint, not even a single auth

It's government, not like they should be afraid of anyone suing them or something
😭 😭
you can sue governments but its kinda cheating if you do it from within because its kinda like taking money from yourself and others that pay tax
Infinity money glitch 
i wonder what can go wrong
I'm wondering if i continue working on the captcha bot or just release it open source
You've never seen government software before
you'd think it's fully vibe coded by how bad they implement things
yeah gov contracted software is fucking AWFUL
Cut corners to fulfill the language of the contract and pocket more money
It's a miracle how they even pass any kind of quality, regulations or any other scrutiny
looks pretty nice
lel tbf i can make it hard as much as id want rather its a setting
also audio challenge as well
lol
known scam tf
quite a simple one so an llm should get it easily
advanced ocr too
good captchas do some weird things with the images that confuse and fuck up the image tokenizing that llms do (like putting tiny characters/symbols all around the image or in the image itself)
i saw hcaptcha do this but dont think google does
very easy to prevent llm to actally to read it
lol, i can even see the home address of ministers
crazy
hi
time ot ramp up the development
god I hate to boot up my server ffs
damn made it too hard xd
i made the genuinely most advanced bot i could for discord, full dashboards, cross server calling etc. could i have any type of feedback at all on what i should fix or maybe add? i need to polish it,
looks like a child of claude / claudecode
yes! i did use claude for a bit of the ui and for the sounds, rest is 100% human made tho, also the cursor was made by claude
8 month project
vibecoding is fine if you admit it, those that don't suck the most.
it genuinly does look like time has been put into this so fair play
yeah, i just like how it looks and how smooth most of the ui looks because of it, before i applied any ai it kinda looked randown, needed it for polishing haha, always honest work though.
Nice ui
ty!
bro I as a human cant do this one
lmao
yea but these arent realistic
Like IPIHXW? #1?
yeah fair
actually started to look like smthing now
Are you trying to compete with Authentik? :p
nah
@small tangle thing is, you gotta develop things in order to improve
e.g, now I've built a "radio", just to see how different things work, and how old tech was :p
I am just shitposting since it has the same name
Well the thing is i sort of renamed it Authentic/Authentik xd
though so hard to test, to see how the connection is
(radio)
Out of curiosity, are you trying to have a look and feel like Marathon (the video game)?
Nah, usually whatever i dream ujp and try to buikld the design, usually go out and whatever color finds me kekw
im autistric
xd
your primary color reminded me of it 
oh never heard of it tbf.
but yea it does fit
currently it was sunny xdf
dunno im weird
@knotty night
Let me see your code for checking votes
Wait as the tag for me hehe
@pine sinew
Yes, sir?
^
Oh let me give you
|| static async hasVoted(userId) {
const token = process.env.TOPGG_TOKEN config.topgg?.token;
if (!token) {
return true;
}
const botId = config.clientId "1498727162147242035";
try {
const response = await fetch(`https://top.gg/api/bots/${botId}/check?userId=${userId}`, {
headers: {
'Authorization': token
}
});
if (!response.ok) {
if (response.status === 404) {
return true;
}
if (response.status === 401) {
logger.error('VoteUtil', 'CRITICAL: TOPGG_TOKEN is invalid or unauthorized!');
}
return false;
}
const data = await response.json();
return !!data.voted;
} catch (error) {
return false;
}
} ||
There’s npm for checking it
Ohk
Which npm package do you recommend?
I'll switch to that instead
@top-gg/sdk
Got it
I'll switch to top-gg/sdk
Thanks for the recommendation 🫠
Ohk let me try it
hot take, but sqlite is goat for discord bots.
Nah I run my database locally
I’m not using mongodb cloud
sure, we all do on our servers, but what are you actually using as an engine
ah mongo okay
Mongodb local host
@warm surge
Still getting 404, how long does it usually take for the backend to update?
Honestly idk
Usually few hours
Alright I'll wait
coming along nicely
Just a question: Bot cant rename the server owners nickname right?
manage_nicknames?
It can if it has the correct perms and iirc role hierarchy
It cannot manage anyone above itself
whew finally https://useauthentic.xyz/docs
honestly not too bad, was hoping it'd be harder
and what r these? 🤓
the bot role is higher then all other roles and nickname perms also, what i´m missing?
Question for @humble gyro (Top.gg developer):
Hi! I'm building a project called Authentic that provides a REST API for Discord servers. The platform allows server owners to generate API keys and exposes various endpoints for managing their Discord server programmatically (sending messages, managing channels, webhooks, etc.).
I'm interested in integrating Top.gg vote tracking into our platform so users can:
Set up Top.gg webhooks to receive vote notifications
Automatically reward voters by sending messages/roles via our API
Track vote history and analytics through our dashboard
Essentially, I want to build an integration where our users can configure their Top.gg webhooks to point to our API endpoints, and we'll handle the vote events and trigger actions in their Discord servers using our existing API infrastructure.
Is this type of integration allowed under Top.gg's terms of service? Are there any specific guidelines or restrictions I should be aware of when building this? Also, are there any official SDKs or recommended patterns for handling Top.gg webhooks in this way?
Thanks in advance for any guidance!
hi, yeah we have an intergrations layer. check out https://top.gg/bot/<yourbotid>/dashboard/integrations
there's also a form which you can get us to contact you
docs can be found under webhook here: https://docs.top.gg/
Everything you need to integrate with Top.gg: REST API reference, webhooks, vote tracking, and community SDKs for Discord bots and servers.
Build approved integrations that let users connect your service to their Top.gg project with one click and receive webhook events automatically.
cool, will do once i set everthing up, and thanks and apologies for the ping 😄
sweet excited to see it :D
kind of done but meh, adhd xd
not even sure to release the project and if there's a purpose since it makes a discord server into a API lol so you can integrate eaiser with other things :/
close enough
close enough close enouugh
added few more integrations 😋
twitch 💀
yep
i don't see a issue with it personally 😛
prob none would even use it, but atleast it's a nice way to distract myself
hey i made a bot recently, i just want some public opinions on it,
heres the bot webpage - https://fridaybot.ashutoshswamy.in
not related to the bot but i would change the highlight and underline to the 'Extraordinary'
thanks, i would work on it
now that vibe coding websites exists i swear weve seen a massive influx in people coming in to ask for feedback about their bot sites
i dont think its that much more
is there a way to re-activate this automatically using a bot?
my members get alot of spam dms
hey all, recently got my bot approved and i'd really appreciate any feedback!
you sure? 😭
makes sense though since the barrier to entry is way lower and takes less time to make a decent design
I'm really pissed off by basic stuff that people don't fix before asking for feedback like detached top bar or icons that clips into text
Even if you don't know anything about web dev you can see that there is something weird 
@ gork make based site make no mistakes
Add some pointless animations to almost everything on the website no one really care about
Don't forget about gradients
my bot "recently" got approved and I'd really appreciate any feedback! https://amanda.moe/
Also I noticed that AI likes to use unicode emojis as "icons", this really annoys me for some reason
yeah and a lot of the time they just get AI to do the entire layout for them which makes it look like
doing it step by step like navbar first, buttons, pages, etc and telling the llm exactly how you want it to look or what to change makes the page actually look unique
least obviosu AI site
i know some creativity went into that because v0 wouldnt use that kinda style in a million years
I've now shipped my first rust program with panic abort 🙏 please pray for me
isnt that normal?
not for something that needs 100.000% uptime
Sending prayers and good thoughts 
well im assuming you're using it in paths you're never expecting to run unless something really bad happened 💀
well I've took some time and removed all unwraps
just a few expects remaining on startup
mainly worried about library code/misuse
back in my c++ days we just didnt add any runtime checks for things that shouldnt happen and just let UB take over
no ai was used in the making :)
No AI in big 2026? Yea sure buddy
impossible
someone can actually write a website these days????
i thought only machines could do that
For website? Yeah no Ai. Just look at neocities. The design is so simple its like a shitpost
Like some simple divs and backgrounds and borders
still looks better than the copy paste v0 bootstrap with gradients and animations sites vomit
Real. Dont need any js libs either for shit just a gif bg
I just found out about Option::get_or_insert_with 🙏
Use less tokens
redesign part 3 time to try again.
Hello stefan 🤣 name leak

pushing memory to max eh
thinking if i add options to allow which endpoints the user can use so they can choose and have options
when i was young i had this mindset that we programmers are very powerful and we can get rich but now i just realize we are a cooprate slave and now even a corp job is not realistic like god dammit man
i was coding a discord bot in 2019 in high school and now im a cs graduate unemployed don't know shit and wants deep sleep.
also everything you learn is obsolete in 2 years
i stopped learning and rely on my resident LLM (RLLM) to do everything for me
gemini loves putting out bs on anything technical for me
the lazy generation has come
LLM (lazy lazy man)
keep making the same mistake, start building out the project in sqlite and then realize after 10k lines of code if not more, I want to use postgres
i have yet to encounter a good reason to use postgres, none of my projects ever got big enough to warrant distributed computing
back when i first started coding
oh totally me as well
i didnnt know about switch cases so its a massive if else chain with nested if else chains for sub commands
😂
okay exclude me from that
gives terraria vibes?
not sure related to this, but anyone knows a decent email provider for my dashboard ;P
you live and learn 🙂
bro deleted the message
yea i found the answer
its depeneds ngl
ytou can host your own or rely on something like mailgun which handles the mailing part for you, you just provide them your domain
they are paid though but shouldnt be too bad
most likely cheaper alternatives too
yeah i dont know how to design emails xd
Isnt it just HTML?
it's fancy weird html
more lines = better programmer
elon musk said so
fancy weird is correct
cap_std reference
me when i dont get humor
Lmao
More employees = better company
~ definitely not Elon Musk
I have no friends and my kids hate me
- Belon Fusk
Elongated Muskrat
is this an elon musk reference
No, that's Melon Husk reference
husk? like the ones in minecraft?
@frosty gale I love working with rust openssl
I put openssl vendored in crate root? go jump off a bridge
I move it one layer down? the builds suddenly works like it did before
Hi guys
hey
im guessing there isnt a way to see the queue for bots in queue.
for us normal folks at least
no, it's internal information only
we give a rough turnaround time instead ( which is currently 1-2 weeks )
i see
mao
holy can't believe that by tomorrow everything will be finished, including alerts to email, sms, pagerduty, teams and other platforms, ML analysis of content, pattern matching, code investigation in discord
i found a weird querk of the llama3.vison:11B
for very small grey scal images it just completeltly breaks im guessing because they didnt it train on anything close to that or its legit just asking as noise for the model which makes it produce nonsense
it also really likes saying "urn of water"
holy typos
idk how i code when i type so badly
lmao
it was also activly trying to kill ollama to restart its self but it kept respawning instantly and it was legit getting upset and mad lmao
😂 im wondering
how many actual commands does the bot have to have when applying
i forgot been ages
not even close man what the hell
one sec
last time i applied god knows when it was xd
eh not too bad 2/10/2026 4:08 PM
i love the integrations bit , especially the email part
For a bot to be considered approvable, it must have at least 1 "feature" OR 5 valuable commands.
knew i saw it somewhere
was in the mod thing
i cast critical = 464230
m?
the critical counter thinkigy
(im exausted)
same i woke up at 23;00
rip
gonna go buy myself some breakfast
i want some brekky
😄
time to implement redis 🙁
🔥
are those lines inside the embed a spacer???
how does someone achieve it?
(and im ignoring the buttons INSIDE the embed)
This is not embed and those are separators (one of "new" components)
what is it then?
There is but idk the link, I don't use python
You can use something like https://discord.builders tho
Use new Discord components in messages for free and stylize your server however your want.
wtf ive been doing it with embeds and stuff
now i feel rtded
custom_id="341c59d339644d22cee858f02d66dbc6" and you just attached a function to the button id?
anyone used pm2
I do
yes for all my node js stuff
except for my next.js stuff xd
i would recommend:
pm2 start thingy.js —name "thingname"
then:
pm2 startup and pm2 save to start these processes automatically on server reboot.
For debugging:
pm2 logs <name|id>
and maybe:
pm2 status
these are all the important commands you need
pm2 has just been a nightmare for me. The goal is to write better software
just use docker atp
or podman
Also options, but for my bots, I prefer to run on raw
Nah I think a docker image of the bot thrown onto a GKE cluster with 34 nodes & automatic horizontal scaling to support 15 users is probably the best long-term
yea just set up k8s with some talos nodes and a 3-node control plane set up
And while you’re at it add a Prometheus & Grafana layer to make sure that everything is monitored and add an emergency pager alert when cache hit rate drops
All of this is required for a proper MVP
then proceed to never update grafana ever or even login ever
Real
I never had problems with pm2 so I don’t have a reason to switch
The problem is that your app needs to be restarted at an interval or when it hits an unhandled exception. For apps where uptime isn't important or it's not a loss if it does restart, sure. But for bots or services, it should be running always and be as stable as when it first launched. If it can't do that, then there's a problem that needs to be fixed
my pm2 apps never restart
i've had stuff with 1Y+ uptime lol, because im too lazy to update shit
🙏
🙏
I still know someone with a system on linux 4.x
xD
pretty sure there are mission critical servers with 30+ years uptime somewhere
that nobody dares touch
"Never touch a running System.." huh? 🦁
anyone else feels like deleting everything and starting from scratch every 1-2 years? i always work on something until a certain point, then stop for months-years, then feel like deleting everything and starting over, including deleting the whole vps lol
riir
Yaaasss... but for me its every month XD
xD
the thing is
i cant delete this one, because it runs my old bot and people still use it
i havent updated it in like 3-4 years
wait but i make already makeovers then killing something that i already have. sometimes it the old code gold..
still havent moved away from pm2 you poor soul?
i remember using pm2 ages ago for almost everything but now i just use systemd like unix gods intended
pm2 is quite chunky in terms of memory since it does use node (including its plugins)
Tried to use task sqedualar
(Curse my dyslexic ass)
Schedular
I give up
But yea couldn't figure out why it launched but nothing ran
Also how do people fail to fix the same thing 3 times in a row do they just resubmit the same bot without even testing or like genuinely how
Also just wrote my own program to restart the bot if it crashed
well it makes it easy to separate user apps from system services and its very easy to use
bro i bought my freind a steam game like a year ago and they still havent payed me back
but they just bought a 300 dollar plane ticket
like just pay me back smh
NO I DONT WANT YOU TO MAKE A FOULDER FOR EVERY PARTICAL WDYM

watching ai code is um interesting
first
second
third
fourth
fifth
hi
seventh
Let's say a wise coment : "hail hit.." . Well, just eight
how exactly do you send emotes in discord.js?
you can just send the unicode
or the :emote: thing, but that works only shows on desktop afaik
because I want to make a slot machine
^^
!!stats
2 days, 17 hours, 29 minutes, and 21 seconds
91MB
megu-bot 2.0.6
1
281 Guilds
5,027 Channels
26 Private Channels
12,815 Users
(45.6 Average Users/Guild)
446 Commands
1,666 Cleverbot
2,112 Total
12,815 Users
0.85/min Average
-botinfo
Please include a bot mention
//help
Hello there. Allow me to introduce myself: I am Arraybot. I am designed to be a fast and customisable butler for your guild. I have the ability to manage custom commands, for your guild only. Additionally, I can help with every day situations, and most importantly, I am a fun companion.
I'm currently open for suggestions. Submit one to improve me.
You can do '//help <command/category>' for information.
A list of categories is below.
- Utils
- Fun
- Customisation
- Developer
can I get help with this feature?
so
its supposed to shorten links
but it doesn't
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
exports.run = (client, msg, [link]) => {
const Bitly = require('bitly');
var bitly = new Bitly(token);
var preShort = link[1].toString();
bitly.shorten(preShort)
.then(function (response) {
var short_url = response.data.url
// Do something with data
}, function (error) {
throw error;
msg.reply('ERROR: \n \`\`\`error\`\`\`');
});
msg.reply(`Shortened Link: ${response.data.url} \n Original Link: link`);
const fs = require('fs');
fs.readFile('./logs.json', function (err, data) {
if (err) return console.log(err);
data = JSON.parse(data);
data.commands.shorten++;
data.commands.total++;
fs.writeFile('./logs.json', JSON.stringify(data), function (err) {
if (err) return console.log(err);
});
});
};
exports.conf = {
enabled: true,
runIn: ["text"],
aliases: [],
permLevel: 0,
botPerms: [],
requiredFuncs: []
};
exports.help = {
name: "shorten",
description: "shortens a link using https://bit.ly",
usage: "",
usageDelim: "",
extendedHelp: ""
};
at Object.exports.run (C:\Users\User\Documents\GitHub\moosebot\commands\general\shorten.js:1:77)
at client.funcs.runCommandInhibitors.then (C:\Users\User\Documents\GitHub\moosebot\node_modules\komada\app.js:79:11)```
That has your bitly token
what are you talking about

lmao
any idea whats wrong?
No clue, don't use js ¯_ (ツ) _/¯
lol
I have so many questions with that code...
like?
api.shortUrl = async (url) => {
let pars = `?access_token=${config.token.bitly}&longUrl=${url}&format=json`;
let data = await superagent.get(bitly + pars);
if (data.statusCode != 200) return {"Error": apiError};
data = data.body;
return data.data.url;
}
How I shorten urls
if your using harmony and node 7, definitely use async and await
@lusty cradle what lib are you using?
For discord bot?
for url shortening
but not just for url shortening
lol
how do you use superagent?
I use unirest or request
@naive summit unirest is bae
For those of you using Java do you use JDA or Javacord? Also, what's a good resource for learning Java? I know node.js and c# already, and from what I hear, they're pretty similar, that true?
JDA, Javacord sucks
Ok
Discord4J is good also
What about resources for learning?
Official tutorials
From?
Oracle?
If you know c#, the syntax for Java is extremely similar.
But the languages are very different
Syntax, and a few more things from the starting days of c#, and that's where similarities end.
Yeah
I started with c#
ikr adam
same
kappa
anyone knows
why this is null when deserializing?
like, everything works but that value
and if I do this
it kinda "works", not really
it just hangs up and doesn't reply
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)
jackson pls you're trolling me at this point
you're also mixing "your" up with "you're"
That isn't ok
inb4 spong gets triggered and rekts me and roasts me
xDDD
yt help
Youtube bot for Discord. Searches YouTube and responds with a link to a video.
No Category:
version Shows the changelog and version of the bot
stats Reverse lookup for youtube videos. Returns statistics and stuff
info Shows some info about this boat.
cooldowns
help Shows this message.
channel Searches YouTube for a channel.
search Searches YouTube for a video.
join Provides an OAuth link used to add the bot to the server.
Type yt help command for more info on a command.
You can also type yt help category for more info on a category.
yt stats
yt channel JHTA Gaming HD
Channel: Night Killer
Subscribers: 1
https://www.youtube.com/channel/UCOXRUPMvfCh--vfWNr-JHtA
Channel: HasanBrandsXD
Subscribers: 12
https://www.youtube.com/channel/UCx1QpIXjCBwpvszw3C7GQAA
yt channel DanTDM
Channel: DanTDM
Subscribers: 14431791
https://www.youtube.com/channel/UCS5Oz6CHmeoF7vSad0qqXfw
-botinfo @molten wren
question: how would I put a variable here?
data.commands.shorten++;```
as in
shorten
would be cmdName
wat
right now it will just add cmdName to the json file
i want to put data.commands.cmdName++; and have cmdName be a variable
right now it just added a value called cmdName to the json file
if i set cmdName to "shorten" i want data.commands.cmdName++; to add 1 to the value in the json file called shorten, not cmdName
so
you have var cmdName = 'shorten'
right?
and you want data.commands.shorten to increment
Input: var data = {commands:{shorten:1}}
var cmdName = 'shorten'
data.commands[cmdName]++
console.log(data.commands.shorten)
[Log] 2
Result: undefined
Does anyone know any free hostings?
your computer
otherwise, you're not going to find much
but regardless, hosting is not expensive.
is it's not a music bot hosting is cheap yes
music bot hosting is cheap
I'm at 3-5MB/s on OVH, with a limit of 100MB/s, so im good for a while
Oh of course xP
And 50
/status
Adam if my computer is one then Music Bot is free xD
_info servers
3879
168
85772
127365
123
20608
1247
1449
Total: 513041
Online: 183770
Offline: 414626
Inactive: 29207
God damn it Gnar!
@warm canopy but the computer wasn't free! so you did pay 😉
xD
-botinfo @shy lodge
-botinfo @slate scaffold
9
@earnest phoenix this is an issue we are aware of and we will find a suitable fix for spammers etc and reset votes before our official release
~botinfo @scarlet star
It's -
nice
-botinfo @harsh pebble
Show this list of commands.
rl!, Roxy
Send the list of server configuration commands.
Send the list of utility commands.
Send the list of fun commands.
Send the list of moderation commands.
Check the required server permissions for each command.
Invite this bot to your server + Main server invite link.
Roxy info
Forgot to list it
oh
You never have enough stats
---MantaroBot Technical Information---
Commands: 73
JDA Version: 3.0.0_155
Lavaplayer Version: 1.2.30
API Responses: 762471
CPU Usage: 33.15789473684211%
CPU Cores: 2
Shard Info: Shard [0 / 3]
------------------
Guilds: 2661
Users: 82314
Shards: 3 (Current: 1)
Threads: 166
Ticks: 43234
Commands: 2121
Logs: 112
TPS: 7.0
Memory: 612.0MB / 3641.0MB
Music Connections: 37
~>stats
Well... I did my maths!
Min: 2
Avg: 49.9
Max: 8019
Min: 1
Avg: 17.4
Max: 3121
Min: 1.3%
Avg: 53.0%
Max: 100.0%
Min: 1
Avg: 5.6
Max: 463
Min: 0
Avg: 6.3
Max: 420
Min: 1.8%
Avg: 25.0%
Max: 100.0%
Min: 5.6%
Avg: 41.1%
Max: 100.0%
1.4% (37 Connections)
888
215
1 MantaroCredit worth 56.21 USD
~>stats guilds
No Events Logged.
Count: 32
███████████ 78% Join (25)
███ 21% Leave (7)
Count: 53
██████████ 69% Join (37)
████ 30% Leave (16)
Count: 53
██████████ 69% Join (37)
████ 30% Leave (16)
~>stats cmds
Count: 25
██████ 44% play (11)
█ 12% skip (3)
█ 8% stats (2)
█ 8% anime (2)
4% info (1)
Count: 1268
█████ 39% play (501)
█ 7% skip (91)
5% help (72)
4% stop (55)
2% loot (37)
Count: 2126
█████ 38% play (816)
█ 7% skip (152)
6% help (134)
4% stop (86)
2% guess (51)
Count: 2126
█████ 38% play (816)
█ 7% skip (152)
6% help (134)
4% stop (86)
2% guess (51)
~>stats vps
~>stats usage
~>about
Hello, I'm MantaroBot! I'm here to make your life a little easier. To get started, type ~>help!
Some of my features include:
✓ Moderation made easy (Mass kick/ban, prune commands, logs and more!)
✓ Funny and useful commands see ~>help anime or ~>help hug for examples.
✓ Extensive support! | Support the bot development!
2.1.4_16032017_J3.0.0_155
0 days, 01 hrs, 38 min
3
163
2661
46254/82315
14884
16696
~>stats
Well... I did my maths!
Min: 2
Avg: 49.8
Max: 8032
Min: 1
Avg: 16.7
Max: 2879
Min: 1.3%
Avg: 51.9%
Max: 100.0%
Min: 1
Avg: 5.6
Max: 463
Min: 0
Avg: 6.3
Max: 420
Min: 0.2%
Avg: 25.0%
Max: 66.7%
Min: 0.9%
Avg: 45.7%
Max: 100.0%
1.4% (38 Connections)
895
216
1 MantaroCredit worth 56.95 USD
/status
@cosmic plover outperforming you in music for size 😉
Well... I did my maths!
Min: 2
Avg: 49.8
Max: 8032
Min: 1
Avg: 16.7
Max: 2877
Min: 1.3%
Avg: 51.9%
Max: 100.0%
Min: 1
Avg: 5.6
Max: 463
Min: 0
Avg: 6.3
Max: 420
Min: 0.2%
Avg: 25.0%
Max: 66.7%
Min: 0.9%
Avg: 44.9%
Max: 100.0%
1.5% (40 Connections)
891
216
1 MantaroCredit worth 56.95 USD
22 connections
pledge me a dollar and I'll pledge u one
xD
ez money
but we get patrons
I got another 1cent donation
1 cent pls
PayPal took all of it
KEK
.>
I am currently making a bot but I can't think of a freakin' name for it...
.info
.help
🔮 | Miscellaneous - lookup, giveaway, shorten, emoji, roleme, poll, bot, base64
🕹 | Fun - profile, reg, cmds, love, roll, math, yoda, choose, pokedex, hangman, rcg, music, flip, 8ball
🖥 | Guild Administrator - ban, wordfilter, perms, prefix, announcechannel, softban, prune, farewell, config, greeting, kick, rolemeremove, rolemeadd, flush, greetingdm
⚙ | Bot Administrator - eval, shard
🌐 | Informative - urban, guildinfo, weather, help, emote, user
If you need a detailed description on a command click here (WIP)
To get help on a command use .[cmd] help.
ErisBot Help
.help - A list of helpful commands (this)
.status - Status of ErisBot
.ping - Reply with a pong! Used to test response time
.ud - Search Urban Dictionary
.weather - Check the weather
.roll - Roll a number!
.8ball - Ask the 8ball
.fml - Random Fml Quote
.userinfo - Get userData about a user
.serverinfo - Get information about this Discord server
.yoda - Learn how to speak like me someday, you will. Oh wait. Herh herh herh.
.overwatch - Get an Overwatch player's stats!
.giveme - Give users a role with just a command
.prefix - Set a custom prefix for Eris
.slowmode - Forcefully slow down the channel speed
.command - Disable/enable specific commands
.announce - Announcements for users join/leaving your guild!
.music - Music Features
.twitter - Live Twitter feeds straight to your channels
.twitch - Get notifications when your favorite twitch streamers go live!
.cc - Currency Converter
.clean - Clean my messages
.inviteme - Invite me to your server
🔮 | Miscellaneous
Command: Bot Command
Description: Multiple options and informations on me!
Arguments: No arguments required.
Please note: do NOT include <> or []
Required Permission(s): RUN_BASECMD
Parameters:
⚙ | Bot Administrator
admin - Use bot admin ? to get help on this command!
🌐 | Informative
info - Gives you information about me!
inviteme - Gives you my OAuth URL!
stats - Use null to get help on this command!
ping - Gives you my ping!
Example: bot stats
@bitter sundial
should i add up guilds from my shards and then send
or jus send from each shard
like which one is more convenient for you
@faint jetty Do you know of a good name for a bot because I need a name and then I can publish it.
i'm doing that as well
well the every hour
tbh it takes like no time to iterate through the shards
@dawn robin um, that's for you to figure out
realizes that I'm only sending one shard to the status page

LUL
The preferred update method is to update whenever it changes on that shard
However an hourly update is good too
the point being that I add the number from each shard before sending
should I continue to do that?
or just send from each shars
shard*
yes
that works fine
&kill cmdhelp
@bitter sundial can I post the shard amount as well
well
you can send it in an array
then we'll count it with the shard amount
or you can post each shard separately
@fossil oxide my stats post doesn't seem to be working
how should I do it with needle
:white_check_mark: Succesfully reloaded the command statsupdate
?statsupdate
@fossil oxide how long does it take for the site to update the amount of servers?
what os
debian wheezy
ive tried that
how does it fail
first time using linux?


