#development
1 messages · Page 1465 of 1
calls my parents
Glitch and heroku give you 500mb afaik
DAD I NEED THE CREDIT CARD
so it has more features and stuff?
You have full admin/root access
Repl gives me 512 MB which is more than enough
poggers
And I don't plan on making a big bot
im gonna try google cloud then
Can even install windows on it
static
hope i make it before i run out of dynos
GOOGLE LITERALLY LETS ME RENT A COMPUTER

Thata what a vps is
???
just send the link or create a new messageAttachment
DA FUCK
virtual private server
Computers are expensive they can't give a free forever computer each to millions of users
(that's probably why credit card)
apparently its to verify that im not a bot
Google charges you for bandwidth tho, they only give you 1gb free per month
reCAPTCHA is hard to bypass but it's possible
i have a downloaded image created with photoshop and i create the command where compare the image
Still, my bot was paying like 50 cents per month on 1k servers
I'm barely even released yet
Two servers, ones my normal one and the other is for testing
Wait I just realized I haven't put my server on DSL
because you are big brain developer
how does google expect heavy resource usage from a d.js-light dev
That was before djslight
My bot was using 300-400mb ram and crashing due to out of memory
Thats why i moved out of google
my bot uses a maximum of 70mb ram
recommends us to use google
tells his story of moving out of google
Yes
Because paid vps > google >>> glitch/heroku/replit
do you guys remember that story about how a single recursive function racked up $75000 for the GCP project of a company few days before launch
Google was kind enough to forgive them for it. ALL OF IT. ALL SEVENTY FIVE FUCKING THOUSANDS OF DOLLARS OF IT
Lmfao
you got most parts wrong
here's your fixed code:
google > digitalocean >>>> any vps provider >>>>> self host >>>>>>>>> replit >>>>>>>>>>>>>>>>>> glitch ">".repeat(Infinity); heroku
Lmao
That's why you set a budget
google is not better than private vps providers
They did set a budget and they got an email and nothing else happened
Not in terms of price value
google has firebase tho
Oh lol
contabo is pretty good
aws is good
its a cheap company
successfully started vps war time to close discord and go code
like 10usd for a decent vps
especially in terms of pricing
aws is like google, both are stupidly expensive compared to private vps providers who offer the same features
only $70 per month for a 1-core 5MB RAM compute instance with 20KB port
lol
Wait..you're just here to waste our time
y e s but actually n o

So you can beat all of us with your discord bot 🤯
wait so do i choose google or not
confusion
HAHA I MADE YOU GUYS BATTLE IN VPS WAR WHILE I COPY PASTE YOUR CODE AND MAKE MY BOTUM DA BEST HAHAHAHA
YESSSS
Some people just like to see the world burn
and you have to do some big brain things to get to it
I HAVE OFFICIALLY GOT AN UNO REVERSAL SLAMMED ON MY FACE
Ez game gg
Tim usd?
capslock.on();
Yes
wow
"A".repeat(100);
I pay 11.5
why
Why not
his name is literally code
are you assuming their gender
force of hobbit
@quartz kindle how do you like ts?
ew
somewhat off topic, but does anyone know how to make fail2ban send webhooks to a discord channel?
which is poggers
Can fail2ban even send webhooks?
What is fail2ban
Finally flazepineapple's aeon listened to me and ran this command and let me fuckign copy the nonembed text on mobile
I present to you
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
..congrats?
its used to ban ips that fail to authenticate with a host
Does anyone know what you're talking about
Oh ok
cloudfox is now on my bonk list beware of a giant wooden softbody coming at thy face
Look into fail2ban actions and curl
:o oh no I'm on someone's bonk list
hmmm, looking at the slack plugin it literally looks like they are parsing the fail2ban logs with a bash script
he seems to be
whats up with that file extension
action.d is a directory
so like i'm making the file /etc/fail2ban/action.d/discord-webhook.conf
just gonna ignore this
@oak cliff uhh
mommy beaned them
<3
how do I set this up in node-fetch.
i guess not
body: {
grant_type: "client_credentials"
}
The body must be in json
so
fetch('url', { body: JSON.stringify({ grant_type: 'client_credentials' }) })
im trying
Formatting 😩
bruh yes
Will that even work
its just a quick reference
I don't understand how that would work
it also hurts my eyes 
i am getting a 415 status code error.
Why do you need to stringify only the grant_type
yea true
If you had to convert it to JSON, wouldn't you have to do it for the entire body?
I mean I could see this either way actually
Yeah, you're right
I just checked
The request body data's method of transmission IS JSON not for individual properties
how the hell are you gonna be sending an object over the air
You know what
The docs are not asking for json
then don't
And I cant sit on my pc
Idk, there's probably a way
i have the micro usb or whatever it's called port for my phone
await fetch("https://accounts.spotify.com/api/token", {
method: "post",
grant_type: "client_credentials",
headers: {
"Authorization": "Basic ....."
}
})
.then(
function(response, body) {
if (response.status !== 200) {
console.log(body)
console.log(response.status)
return;
}
response.text().then(function(data) {
console.log(data);
});
}
)
.catch(function(err) {
console.log(err);
});
i'm getting a 400 error. what's wrong
you know that the end of the usb that connects to the computer is big
@earnest phoenix
Where's the body?
Why do I get this error when running guild.members.fetch()? The server has 5 members
do you have intents enabled
u dont need intents unless u get 75+ servers?
You still need to enable it.
You need the server members intent to be able to request all guild members
You dont need it to request only one member
well, what if I need the member count of a server 😄
You use guild.memberCount
i'm literally at the point where i need to use node 15 cause of proper native abort controller support but so many packages break with node 15 so i have to fork them, adjust them for node 15 and then install from the repo
Lul
this is fine, totally fine
Ye talking about joystick support
process.stdin?
Abort controller
Its a signal you can send into a function or promise to cancel it from the outside
Have a problem:
Same code, but two differenes:
1.Win 10 pc
2.Linux server on debian
And the second one is not working, its outputting a error in a db fetch, which the win 10 pc do not do.
npm be like:
• Casually approach child package
• Hold package firmly
• Y E E T D A P A C K A G E Y E L I T T L E S H I T
unfortunately i have broken my crystal ball and therefore am unable to peek into your console to see the error
You're hosting a linux server inside a debian linux server?
the error, will not make it easier for u
linux server with debian
sure it will
the error is the key to everything, you telling me your os is the less important thing here
That's actually possible iirc
vm
but this error does not happen , when I do it on my win 10 pc
@tired panther code plz
I should make logs for my errors ngl
you need to properly handle your errors
don't log to discord
and print out the full stacktrace
...why the fuck would i log on discord
i was referring to meister
?
its the cleaned error
fs.createWriteStream("log file path")
then keep writing data to it, should i?
where should I print them?
take a guess
I can not look every second in the server
you don't have to?
just ssh into it whenever you see something isn't working correctly
btw i was asking cry if i should do this
you should look into sentry, meister
but then ppl have to report it ti me
whaaaaaat?? when program no worky people complain to developer??? no way!!
1 error happens every day xD, all other are handeld successfully
you should write atomically in case of a crash
my internet is having a stroke
So do you had a kind of same problem?
let dm = await count.fetchUser(bumpedby)
if(dm.status === "beta"){
happeing here
i just spent so long typing a big chunk of code only to realize streams interpet the data one chunk at a time
if you're using a local-based database, the database you have on your pc and the one you have on your vps will not have the same data
so if i send a 100 Kb chunk then a 10 byte chunk the 100 KB one would finish writing first THEN the 10 byte chunk
amirite?
My bot never crashes because all errors are handled whenever possible even if one of the npm packages are having a stroke
including promise rejections
never say never
it doesn't have to be your app that crashes
it can be your vps provider
and what's wrong with not being able to log one error
static async fetchUser(userids) {
if (!userids) throw new TypeError("A user was not provided.");
const user = await count.findOne({userid: userids });
if (!user) return false;
console.log("user id and other fetched");
return user;
}
``` what is here the problem?
a
It works on heroku .... everywhere, but not on the linux server
you using mongodb atlas or local
atlas
well how is it causing problems
the db is hosted on atlas so it should be the same everywhere
by the code you shared, fetchUser will never return null
the error says fetchUser returned null
you most likely don't have the same code on both machines
user.status returns null xD
im confused how that is relevant though
they don't use that anywhere
unless they couldn't read their stacktrace properly
@hollow sedge how do i do that?
show me all the code
Hold up. I forgot abt that
@hollow sedge hold up, the docs got me confused, how do i make it?
look at the docs
What code could I use in My Math Bot? I Forgot the code ;-;
You should probably just connect it to an API
Someone who knows how to deal with moment knows how to tell me how to leave it in the format, for example: 1 month, 5 days and 3 hours (discord.js)
moment.duration(amount of time).humanize()
ig you need to split it before
ah, wait
you're doing it wrong
you need to get the difference between current time and message creation time
message.createdTimestamp - message.member.joinedAt @lyric mountain
no
get current time, not join time
date.now()?
ig
or new Date() idk
not a JS dev, but the logic behind it is the same
current date - target date = interval
Date.now()
at Object.<anonymous> (/rbd/pnpm-volume/dfba60fc-72a3-4d95-9c08-ac1aa82d8721/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/lib/index.js:2:18)
at bindings (/rbd/pnpm-volume/dfba60fc-72a3-4d95-9c08-ac1aa82d8721/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:126:9)
at Object.<anonymous> (/rbd/pnpm-volume/dfba60fc-72a3-4d95-9c08-ac1aa82d8721/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/lib/database.js:9:24)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
there's no member.createdTimestamp
SyntaxError: Error parsing /home/ubuntu/secret/package.json: Unexpected token < in JSON at position 1104
I agree
at least theres a sense of accomplishment once its done
@quartz kindle It worked :D
the same as there is when you finally fix that bug
bugs im more used to, its just that doc writing is just plain walls of text without logic
but how can i leave it like this?
leave it like what?
I don't know how that word is in English
say it in portuguese then
I think it's like putting
if its a word or two its fine, we just cant chat in another language in this channel
whats the word in your language?
deixar
ya
discord.js
try this
wait
which you can specify what its int
Loritta uses Fields
the way im sending you is with description
I think I got confused, I'm referring to time
I wanted it to stay in that format
it will stay in that format though
"5 months 4 days 6 hours"
isnt that how it is already?
im fairly certain humanize() does it for you
unless humanize has some custom params
If I put only that expression that I sent the photo, it only shows the months
So, what can I do?
okok
Could you give me an example? I'm still very confused
trying to see
but aparently humanize() only brings the biggest threshold rounded
which is odd
hmm
theres an issue for it
take a look at that
they are either a)
using one of the solutions in that
b) using a different lib
c) they got their own humanize() method
?
expressjs server do I make my code into one big class or nah?
can i ask here about apis ?
you can
np
What is the best Covid API w/ json format and last update time
link ?
what is the best one u know ?
ok sir, i go search more
though, while it comes with VERY accurate results in real time, its a REALLY hard api to deal with since they dont want people to be scraping their shit @steep chasm
config.json or env? which should I use?
bruh
whats yours and why?
though evn has its use cases
json is easier when dealing with tons of configurations, which i do
i think leviathan has over 80 configs
my genshin has over 50 configs
wow
highly customizable behaviour
alright json it is, but mostly because my config needs to include an array and a few objects
pog
i only use .env for tokens and stuff like that
for other things i use a config.json
json inside or outside of the src/?
i put it inside because typescript
then i guess you can put it wherever you want
should I even use src?
this is just the local configs, it fetches more from the database(for global configs)
i tryed this but not worked
he uses json response I think
million, i wouldnt worry about half of the stuff you asking me tbh
it all boils down to preference and use cases
just blindly copying does no good tbh
yea ik but idk why to do one or the other and ill just end up rolling a dice or somethng
they have their pro's and con's
which is why I ask for your reasons more than anything
its not about rolling a dice, its about understanding it
exactly
ENV gets attached onto process and is accessible everywhere
json is easy to handle and manipulate, but you need to throw it around like a dirty sock to access it where you want(unless you make it global too or attach on process)
ENV is used in a couple cases, if you already got ENV being used, no need for config
what about both tho
hardly use for it
unless you REALLY wanna stick to json but some application needs an ENV token
then i might see using both
yeah i guess thats me
i got many configurations that would be really hard in env
but also some tokens
but for an ACTUAL use, i cant think of many reasons
they are alternatives to eachother tbh
well k
hey i have recently made a music bot. If i type: !play pop smoke invincible, it doesn't play automatically. It requires the person to type a 1 before it plays (it is because it has a list where you can choose from).
how can i let it be played immediately?
i am using discord player npm pkg
const GuildConfigSchema = new mongoose.Schema({
guildID: { type: String, required: true}, // GUILD ID
guildName: { type: String, required: true},
prefix: { type: String, default: 's!'},
embedcolor: { type: String, defualt: "#7489d8"},
errorembedcolor: { type: String, defualt: "#f53939"},
commands: { type: Array, default: [] }, // Array of disabled commands (labels)
modrole: { type: String},
autorole: { type: String},
adminrole:{ type: String},
muterole:{ type: String},
verificationchannel: { type: String},
verificationmessage: { type: String},
welcomechannel: { type: String},
welcomemessage: { type: String},
mutecase: { type: Number, defualt: 0},
bancase: { type: Number, defualt: 0},
kickcase: { type: Number, defualt: 0},
} );``` am i doing something wrong? not working at all?
the fact that you typed defualt wrong 12 times really triggers me
How do you make it so when someone invites your bot afterwards they are redirected to the bot's website
prize: args.slice(`${host}`).join(" "),
this thing is not able to slice host as it is a mention.
Is there a way i can get through this
args usually is an array
slice() takes indexes
if you wish to return an array without that specific argument, run a filter method@slender wagon

lol
agreed
y'all coding bots frm scratch?
who wouldn't
depends on what you mean by scratch
same
oh okay thank you
PLS HELP! HOW TO DOWNLOAD/IDK MODULES??
(I didn't program for a while sorry... Thanks in advance btw)
Console error:
2020-12-18T21:36:18: PM2 log: App [index:0] exited with code [1] via signal [SIGINT]
2020-12-18T21:36:18: PM2 log: App [index:0] starting in -fork mode-
2020-12-18T21:36:18: PM2 log: App [index:0] online
Error: Cannot find module 'ffmpeg'
Require stack:
- /home/container/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Module.Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (/home/container/index.js:16:10)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
at Module._compile (node:internal/modules/cjs/loader:1108:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/container/index.js' ]
}
(Will reply tmrw, I guess... It's night here.. soo gtg Bye)
type npm i (module)
when did they verify it?
cuz im fairly certain they are running on lower staff rn cuz of holidays
i've been waiting for mine its been 3 weeks now, which is annoying, they asked me what provider im using 10 days ago and still havent gotten back to me

what a nice way to kill my hype train
ty discord
lmao
Ask on the discord developers server maybe
today a couple of hours ago I think
at this point they'll just see me as the impatient skid
have you checked https://discord.gg/discord-developers
though its odd that they asked for a reference and halted the verification process for it
Just ask on there
meh, fine
^
you probably didnt fill out your verification form very well
i did the same for my other bots
I put like examples and videos and all the shit
i've got other applications verified, its just this one thats taking awfully long
And got accepted in 4 business days
Yeah
how can i do custopm css on my bot page
strange since they emailed me 3 days ago asking for my host and im verified
They are normally quite helpful on the discord developers server though
does someone have an example
they ask for your host?
of what
show it
thats the thing, it usually isnt that lenghty
yea
I would email them asking status or go to discord developers server
is there any way for me to say that an object in js has x and y properties?
say where?
ah so jsdoc or typings?
Then no.
rip
you want to type a json file?
Unless you have a plugin in vscode or something.
When people use json but say Johnson
you would type the code that loads the json file
for example make an interface and assign it to the return object from a json require
or a readFile
the json file is not a code itself, is more like an input
so you have to treat it as such
type your code to expect ZYX properties as input in a certain function
hmm
and then give it the json object from the file as input
yeah ima just open up the json in the side view and live like that
alright
are they verifing?
yup

No worries 😄
did you get them working on it?
i spoke to rabbit, he verified it just a couple minutes ago
hahaha
Rabbit is a real person
poggers
I thought it was a code name
legit verified it 2 minutes after i asked them
wow
gg
i knew there was something off with it, no matter though, its been done
my code is 30 lines and I just finished typing the default options
language?
Help
js
with what
check the docs lmao they are easy
you search in the top right roles and go to roleManager
then there should be a roleManager.create or something
it it shows what it takes
and what it returns
yea that wasnt working though
ok one sec
guild.roles.create is the function
guild.roles is a roleManager and a roleManager has a create method
so strange that it isnt working
i had
guild.roles.create({
data: {
name: 'Super Cool People',
color: 'BLUE',
},
reason: 'we needed a role for Super Cool People',
})
what was it returning?
message.guild probably lol
in discord.js, does anyone know if, when a guildCreate or guildDelete event is fired, if i pull the memberCount property- does it include the bot thats being added to the guild or does it give the memberCount before the bot, and vice versa for guildDelete (does it give memberCount with the bot or after the bot is removed)
cant you just test that
i can but i wanted to see if anyone knew off the top of their head 
oh ok
why do the work when someone else might have done it already
true
When a guildCreate event is fired, I'm pretty sure it includes the memberCount including the bot. How? Because I've seen people with just them in their server add my bot before multiple times and then the memberCount is listed as "2", and there has yet to be any memberCount listed as "1" with the guildCreate event
thanks
Np, pretty sure on a guildDelete it removes the bots membercount as far as I've seen
Actually nvm it doesn't seem to do that on the delete event, it still counts the bots
Unhandled exception in internal background task 'weatherembed_loop'.
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.8/site-packages/discord/ext/tasks/__init__.py", line 101, in _loop
await self.coro(*args, **kwargs)
TypeError: weatherembed_loop() missing 1 required positional argument: 'ctx'
I am confusion
@hasty mulch you need to have the ctx argument
Did you read the code?
You never posted it
Are you sure about that?
The link is the code, smh
It's not going to receive a ctx parameter because there's not going to be context for the subject
It was fine before I had to use self to get icon_url working
If you want to send a message in a certain channel, you should rely on the bot field you receive in your initializer (assuming you're using cogs)
You can't get info about the guild LIPD because there's no context to refer to. It's a loop that's called on a set interval.
You'd need to reference the guild somehow. If, for example, your users could enable that loop feature and you stored the guild IDs persistently, you could fetch the IDs and for each one send a message. You need to know the guild or channel in order to send a message in the first place.
Notice in the documentation they don't reference the guild or channel or message: https://discordpy.readthedocs.io/en/latest/ext/tasks/index.html
Alright, I’ll try referencing it outside the loop
@quartz kindle so, i don't get any errors from discord ws
I tried installing quick.db but it got a ton of errors. I downloaded it by npm i quick.db is that right?
what are the errors
so it couldn't find python
You see the message printed after the last screenshot you shared correct
It should tell you how to install it.
I'm not using python tho, im using discord.js
I know.
erm
To build quick.db (which relies on better-sqlite) it needs Python.
you need the whole build tools, not just python
how many is that?
npm install -g windows-build-tools from an administrator cmd or powershell
ok
got this error
do what it says
thats not what it says to do
Erm
click the windows button
type "powershell"
right click
run as administrator
run as administrator
erm
okay
"inconsistent use of tabs and spaces in indentation (<unknown>,line 155 pylint(syntax-error) [155, 121])"
How do mean this?
Hello, I have a problem, When I do all the embed to the skin of the letter, There is one or another that makes me a problem because of the error that I just sent and I review and run it in another embed and it gives me perfectly, someone knows the solution ? +
does anyone here have some time to teach me something?
teaching is my favorite thing that people ask for
because it shows that they want to understand, not just for it to work
and then they ask you how to program a self driving car from scratch
from scratch or in scratch?
car.getMotor().setThrottle(100);
while (car.isOn()) {
car.getSteering().setAngle(Math.random() * 360);
}
Here, a self driving car
Gotta make the fine text really fine
Tesla code exposed
Wait I didn't see the random thing
My bot's database registers a user using a message event, but apparently if you are new and spam in the chat, it registers more than once
Can I settle for a settimeout?
I think it would use radians rather than an angle
mongodb
True
car.getMotor().setThrottle(100);
while (car.isOn()) {
car.getSteering().setAngle(Math.random() * 2 * Math.PI);
}```
shouldn't you check if a user is alreay registered first
whoa there
future elon musk
i make this
no more errors 

YAY
Prefixo = prefix
That's not a fix tho
my bot has smart cooldown, I think it should solve
Oh god, radians, whyyy
because code uses radians
if we use degrees it will be so funky
JS canvas uses radians
Yeah
It is so hard to get used to radians tho
ok sir
Nope, didn't expand on math side, I went to system hell college
Tons of uml and paper
I use discord.js
With some flavor of development
I prefer radians
It makes more sense
I agree
since realistically we could make a circle 400 degrees instead of 360 and nothing would change
Yeah
Is there something like:
let letter = "a";
letter++
//b
Huh
umm
Oh I see
kinda?
wait
Why would you want to do that though
regional_indicator_
Ohh
Js is weird
Btw, be careful putting two regional indicators next to each other
Some combinations merge
hmm?
Weird
🇫
Don't you need {i}
With 🇷
Not just i
🇫🇷
uh
Woah
Ok so thats why it's called regional indicator
Without space
That's actually really cool
Yeah, turns out it indeed is a regional indicator lul
🇧
Always thought why it was called regional_indicator instead of alphabet
Rush 🅱️
Lol
Yeah
because discorb™️
ah yes
if you make a spelling error, trademark it
It's slower
maybe it depends
usually
i made some tests and foreach was somewhat faster than for of
forEach has more memory usage because of the overhead
but of course for(let i =0;... is always faster
now we're changing topic
but u g l y
bruh
Anyway
Cast the string to integer
I sent you a link
It'll get u the unicode
@carmine summit
answer is messy
Answer is neymar
messy > slow
if it were up to me I would get from charCode
Also look at the comments
Sometimes comments contain gems
Stack's answer block is silly
Yep
A isn't equal to a
ok then back to work :DD
a is 0100 0001
and, im just gonna use for
And A is 0101 0001
in what?
Binary
oh
Like, that extra 1 in the first 4 numbers is what defines if it's uppercase or not
yeah i see
Btw, for regional indicators you could simply use unicode notation
what's that?
^ you can just paste the emoji
With an array?
Regional A is \u1F1E6
that has random length?
now that I got that sorted, how do I decode it?
You don't need, emojis are already stored like that
https://emojipedia.org/regional-indicator-symbol-letter-a/ you could go here and just copy it
cool
array that has a random length...
When you paste any emoji in most IDEs they'll parse to unicode notation
i know, i was just saying its an alternative to using unicode notation
why is "6" not yellow?
Unicode is the fastest and easiest way
i like the visualization
wdym..?
Ah, mb, actual unicode used in code is different
Because it has an extra byte
arrays can have any length
Just a sec
\uD83C\uDDE6
ah yes
what's that?
why do you know so much about emojis lol
A
for (i = 0; i < randomized.length; i++) {
let j = i + 6;
let base = "\u1F1E" + j;
randomized[i] = base + decodeURIComponent(randomized[i]);
}
```uhhh
I use regionals for my poll command
oh
This
wdym?
last 2?
Yeah, you could increase everything, but you'll not get regionals anymore
Like, you'll increase at most 26 times
Yeah, there's that too
for (int i = 0; i < options.length(); i++) eb.addField(new String(new char[]{"\uD83C\uDDE6".toCharArray()[0], (char) ("\uD83C\uDDE6".toCharArray()[1] + i)}) + " | " + options.getString(i), Helper.VOID, true);
Here's how I do it
Sorry, it's a long line
Ig showing the actual code would be easier to read wouldn't it?
Hey, I have a newbie question, is there a specific way to make a web page to configure a bot like for example the Tatsumaki bot?
But basically, split that unicode in a char array
Then increase the second char by the number u want
Add 1 and it'll become B
wha?
Add 2 and it'll become C
whaaa??
thats not a project that you, as a newbie, want to undertake
its quite involved
Here, line 127
Curiosity
Reading with actual highlight is easier
its not something that can be answered here though
IS THAT JAVA?!?!
Yep
you need to know about web apps and a ton of other stuff
But look at the logic, not the actual syntax or stuff
Regardless of the lang, u can do tbe same thing
Pretty much the same as node, but with Java you can be so damn specific on what u import
same for python but i dont see this happening
Also, I use a lot of references in that file
perhaps its because of all the java util imports
Just glance at my helper file lul
importing a List 😆
It's at utils folder
Yep
I could do utils.*
But it's better to use individual imports
you did do that lol
import java.util.List;
import java.util.*;
does the bottom one include the top
thats cool
ha
But anyway, back to topic
who even uses that


