#development
1 messages · Page 1661 of 1
use require("file") if they export a function call the function
but they all are different bots
because there are 20 F1 drivers
yes
yea but why?
if you use PM2 you can start each "bot" as it own instance and update them independently, also you can restart all at once.
or look into startscripts from node they can also start mutiple files at once
but for production i would recommend pm2 since you can keep track of each instance and get logs from each bot
this still works even if they were different bots, well kinda
just that they run in the same process
yea i know, but idk how much stuff he does inside the bots and locking them into one process could bog them down
can my clusters be on different machines and still communicate using it?
yes on a different ip
can anyone send me link to kurasata documentation
can I use that to set up clusters on different machines?
iirc its for sharding on the same machine, but you could write yourself a small service to use websockets or some other connection to manage the instances on different machines
ok thanks
um while installign kibana, im getting a disk full error. like i have 50gb disk space dahek?
lmao relax that doesnt happen
anyway i checked the disk, and i have 3 partitions and how do i see what partition the current dir is sitting on?
i tried to increase a partition and it says cannot grow part
did you have for some reason an 15GB swap partition?
can happen, before ive used logrotate pm2 decided to make one
mm the only thing that gets logged is the error logs. which gets cleared every day
How do I find the total number of salon named "lol"
Yo guys
When im trying to fetch lol server info i have this error
But when im going to this url
All god
Good
Code
i love frontend work, idk what currently fucks up but i cant login to my own website. gg
Can someone help me 😬
Hello so i saw this youtube video but i can't find the error here is the code
let SteamRepAPI = require('steamrep');
module.exports.run = async (bot, message, args) => {
SteamRepAPI.timeout = 5000;
// All methods are "static"
SteamRepAPI.isScammer("76561197960435530", function(error, result) {
if(error) {
console.log(error);
} else {
if(result) {
console.log("This user is tagged as 'SCAMMER' at SteamRep.");
} else {
console.log("This user is NOT tagged as 'SCAMMER' at SteamRep.");
}
}
});
SteamRepAPI.getProfile("76561197960435530", function(error, result) {
if(error === null) {
console.log(result);
}
});
SteamRepAPI.getProfile(userID, function(error, result) {
if(error === null) {
let data = result.steamrep
let custurl = data.customurl
let vac = data.vacban
let name = data.displayname
let avatar = data.avatar
let trdban = data.tradeban
let srurl = data.steamrepurl
let id64 = data.steamID64
let id32 = data.steamID32
let rept = data.reputation```
.setColor("#00ff00")
.setTitle(`${name}`)
.setAuthor(`Steam Rep info about ${name}`)
.setURL(srurl)
.setThumbnail(avatar)
.addField("Nickname", name, true)
.addField("Custom URL", custurl, true)
.addField("Vacban", vac, true)
.addField("Tradeban", trdban, true)
.addField("SteamID64", id64, true)
.addField("SteamID32", id32, true)
.addField("Profile on Steam", `:steam:[Steam](http://steamcommunity.com/profiles/${id64})`, true)
.addField("Profile on SteamRep", `:SR:[Steam Rep](${srurl})`, true)
.setFooter("Command used !steamrep")
message.channel.send(embed);
message.delete()
};
});``` And the error
let custurl = data.customurl
^
TypeError: Cannot read property 'customurl' of undefined```
Hope someone can help me 😬
did you read the error
🤷♂️ don't copypaste code
Then your first step is to learn some coding 
Normaly i whouldnt but this is so cool (but it didn't work so :/ )
sigh does anyone know what is sent in the donatebot webhook?
im not very smart when it comes to webhooks im not gonna lie
i got the post but i dont know where the info from it is and it says req.body isnt defined or anything
i logged the entire thing but couldnt find any of the info in the console
can you show your code and the log output
imagine, the code you copy n paste contains some malicious code and you just run it
uh
How do i make a voting tracker in python?
quick question
what do i put in the kibana server.host in the kibana.yml?
the ip i wanna remotely connect from?
because i tired to put my ip and it doesnt work
i dont wanna use 0.0.0.0
the kibana service itself doesnt start.
why did you not just simply do
.addFields({})
Does anyone know how to get momentjs to use monday as the first day of the week instead of sunday?
Oop yea sorry
what are you on about
ok
//console.dir(req)
//console.log(`a`)
//console.dir(req.headers)
console.dir(req)
if(req.headers.authorization == TOKEN) {
//if(req.body.raw_buyer_id != '') {
//}
return res.status(200).end()
} else {
return res.status(401).end()
}```
https://pastebin.com/N974Lksw
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
oop i forgot to edit out that ip
i tried to code a message logger and i wanted it to send the specific message in a specific channel in the guild in which it is deleted.
here is the code:-
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
And what is wrong with it?
Nothing is wrong. I am just trying to make it like the message which is above.
my bot is dont login pls help
& it doesnt sends the messages in the channel also
Sorry for my bad england
bruh

Are you going to help
noone can help if we cant actually tell what the error is
all i see is the deprecation warning
https://github.com/OxideWaveLength/Minecraft-Hack-BaseClient/blob/74bf707dbd97df40812e59a2e76f1a9a6abb65c8/minecraft/net/minecraft/world/World.java#L1853
https://github.com/OxideWaveLength/Minecraft-Hack-BaseClient/blob/74bf707dbd97df40812e59a2e76f1a9a6abb65c8/minecraft/net/minecraft/world/Explosion.java#L123
anyone know how I could transpile this
into javascript
lol
I need to calculate explosion damage using js
and I have to translate some of the java code into js code somehow
ik 99% of people in here wont answer me
cuz ik its pretty complicated
lol
bruh that is NOT called transpile
idk
I just have to make it work in js
all I need is a way to calculate explosion exposure
try 127.0.0.1 as ip
why tho
you want to send it to js, do the calculation in js, then send it back to java?
or you just want to convert this function to js to use it in a js-only app?
They're trying to pass a quiz or a challenge or something like that
no I want it in js entirely
js only app
then you'll need to port it, aka rewrite it in js
i dont think there is any transcoding you can do
well
the code has randomized variable names
and I don't understand java at all
lol
https://i.callumdev.pw/pxdui.gif
how does this make any sense at all
And how can I make it be right under the name like the other one, they all use the same style
hello sir, i am getting no command run, i have started to re write my bot but idk where am i getting error, because there is no error in the terminal and the command isn't running
this is my command handler
Ghostbin is a website where you can store and share text online.
this is my message event handler
cool?
okay?
now can you tell what am i cocking yp
now im not helping you
alos, logstash and filebeat are same? beacuse the tutorial im watching the guy installs logstash and then installs filebeat and configues filebeat to watch loggings
your code is a clusterfuck of weirdness, i dont even know where to begin
lmao
also setting a password? like bruh i set a password and it didnt even pick it up lol
oh :(, how do i make it weirdn't?
¯_(ツ)_/¯
re write it again?
a command handler doesnt need to be like that
it can be much simpler
same with event handling
oh
and you're doing a lot of unnecessary stuff
like this message.channel.messages.fetch();
oh
the handler i have right now just gives me one error
missing assess
how do i remove that error?
i mean, its ok if the bot doesn't have permission, just don't spam my terminal
handle errors
maybe check the discord.js guide
see this is an example event handler
fs.readdir("./events/", (err, events) => {
if (err) return console.log(new Error(err));
const jsfiles = events.filter(x => x.split(".").pop() === "js");
console.log(`[EVENTS] Loaded ${jsfiles.length} events.`);
jsfiles.forEach((f, i) => {
const event = require(`./events/${f}`);
client.on(`${f.replace(".js", "")}`, event.bind(null, client));
});
});
what to do if the bot offline in my server?
which bot
I think this is better
lol
hi
i have a question
does the guilds.join scope no longer work for bots or something
i had an oauth bot which used to join members to servers
and i was making another one, which didnt work
so i fired up my previous one to try finding out the error
and for some reason it no longer worked
#oauth.py
class Oauth:
@staticmethod
def user_join(token, access_token, userr, guild):
try:
url = Oauth.discord_api_url + f"/guilds/{guild}/members/{userr}"
headers = {
"Authorization": "Bot {}" .format(token)
}
user_object = requests.put(url = url, headers = headers, json = {"access_token": access_token})
except Exception as e:
print(e)
//db.json
{"_default": {"1": {"id": "394320584089010179", "name": "Multiii", "discriminator": "7676", "date": "2021-03-03", "access_token": token_here}, "2": {"id": "446670262440820746", "name": "\ud835\udd44\ud835\udd52\ud835\udd63\ud835\udd65\ud835\udd5a\ud835\udd52\ud835\udd5d\ud835\udd44\ud835\udd56\ud835\udd65\ud835\udd56\ud835\udd60\ud835\udd63\ud835\udfe0\ud835\udfda\u30b7", "discriminator": "1234", "date": "2021-03-03", "access_token": token_here}}}
#bot.py
from tinydb import TinyDB, Query
db = TinyDB('./db.json')
@bot.command(aliases = ["j", "i", "inv", "invite"], brief = "Used to Make Authorized Users join any Server the Bot is in")
async def join(ctx, amt: int = None, id = None):
if not amt or not id:
await ctx.send("Command Usage: `?join <no_of_users> <server_id>`")
else:
if amt > len(db):
await ctx.send(f"There are only {len(db)} users who have been authorized.")
return
else:
for data in db:
print(data)
Oauth.user_join(token, data['access_token'], data['id'], id)
await ctx.send(f"{amt} users were invited to {bot.get_guild(int(id)).name}")
this is my code btw
@vale garden Do you have the guild members intent
Hello, anyone knows how to get mee6 lvl or xp data so that i can use it on my custom bot ?
@blissful coral can you refer me to the api
Search on npm mee6levelsapi
ok
do i need it on my bot?
iirc for guild member add yes
`py
intents = discord.Intents.all()
bot = commands.Bot(command_prefix = "?", case_insensitive = True, intents = intents)
this should work right?
You have to enable it on the discord dashboard
ye i did that
that should work then
it isnt working tho
yo wtf this ELK stack
i spent the whole day just to find that it logs only health or something wth?
also these "dashboard" seem to be for webservers

i wanted to see peeps typing commands not these wth 
what is boolean
true or false
Put it online lol
@crisp vault
K he left
you have to add the stuff you want
by default it only logs generic stuff
i tried uploading my ".log" file and it threw an error. basically error logs written by winston are json format
well for tracking commands you probably better would have used Grafana + Influxdb or prometheus
I am using DJS:
Once I create a dispatcher to play a song I immediately do dispatcher.once('finish', () => { but after many skips the bot seems to lag, although I have if (!dispatcher.destroyed) { dispatcher.destroy();} inside the once event.
does anyone know what may be going wrong ?
inspect element
ikr lmao
Cannot destructure property 'guild' of 'message' as it is undefined.
@blissful coral they have banned it, it resulted in error
any other way to get mee6 xp 😭
talk
i want to transfer the xp to my custom bot
oh lol
where is message defined?
it's not
that is the problem
the message comes from whenever someone reacts to something
the bot does react and I get this
where do you call handleReaction?
whenever a reaction is added / removed
client.on("messageReactionAdd", handleReaction) ?
owos
do you have the link of the xp lb?
yea
Would anyone like to test out my bot
you can download it?
thats the thing 2500 members
show your event class
like the entire reaction handler?
Would anyone like to test my bot out
the constructor of the Event class
its not a problem
@peak bough its just 475 bytes
how to get the complete lb
and you want to feed your bot with the data?
yes
custom bot
i would only need the xp tbh
you have to process the Data, which are in the lb, this could take some time
they do .bind(null, client)
meaning client is the first argument
okay
Okay, works now
Only last thing is that users don't get the roles
But I think i can manage that
make you own custom package lol
In discord.js-commando is it possible to add your own throttling message or not? Thanks!
throttling message?
what is that?
most likely yes, but depending on the code they use for it, it can be easy or not so easy
cooldowns ?!
What i mean is, when a you try to execute a command on a timeout, you are returned a message. i wanted to customize that message, sorry if it wasnt clear.
change the message?
uhuh, so instead of it saying "You cannot use this message for another x seconds" I want it to say something else
is that a inbuilt message?
so we are talking about cooldowns?
thats why i said, it depends on how did they code it
i'd need to see their code
you cant, thats a inbuilt message
you have to change their libary
Commando is trash @celest bone use normal discord.js
you can lol
thats the beauty of js, you can hack everything
yes, without manipulating the libary you can not lol
the reason why discord.js-light works
you can edit the prototype of the Command class
Command.prototype.onBlock = function(message, reason, data) {
switch(reason) {
case 'guildOnly':
return message.reply(`The \`${this.name}\` command must be used in a server channel.`);
case 'nsfw':
return message.reply(`The \`${this.name}\` command can only be used in NSFW channels.`);
case 'permission': {
if(data.response) return message.reply(data.response);
return message.reply(`You do not have permission to use the \`${this.name}\` command.`);
}
case 'clientPermissions': {
if(data.missing.length === 1) {
return message.reply(
`I need the "${permissions[data.missing[0]]}" permission for the \`${this.name}\` command to work.`
);
}
return message.reply(oneLine`
I need the following permissions for the \`${this.name}\` command to work:
${data.missing.map(perm => permissions[perm]).join(', ')}
`);
}
case 'throttling': {
return message.reply(
`You may not use the \`${this.name}\` command again for another ${data.remaining.toFixed(1)} seconds.`
);
}
default:
return null;
}
}
then you can edit that in your code
I hate it too, however the bot isn't stable without discordjs-commando
ever heard of
Thank you so much 😄
xD
I made it by changing some lines of codes for compability reasons and changing it from using discord.js to discord.js-light
uses less ram than the original commando and more cache control
not saying you have to use it but I bet you would like it
lol
bot isnt stable, two words which does not fit in your sentence lol
discord is a stable platform™️
my bot is made to make your life easier and it communicates alot outside of Discord, using many things. Discord.js-Commando proved to be faster when handling web requests and fetching specific things from websites.
it went from 2000ms+ responses to 200ms
And its helpful because these times mean alot as it gets routed through a proxy later on.
So the faster the initial response is, the faster the proxy part is, does that make sense? Or am i just waffling
Discord.js-Command uses the libary discord.js . It cant be faster?!
It proved to be faster. I tested this bot out and discord.js-commando proved to be the better option. Maybe it was placebo or maybe i was just testing at a bad time but the responses are faster, and speed is what my Discord bot needs
discord commando will be slower. Since it is bloated with stuff you do not need. you can customize more in discord.js
(plus im lazy and don't like cleaning up my code, my GitHub is an amazing example of that)
ay man, idk
discord.js-commando looks more complicated
you can just make a command handler yourself it isnt that hard

I did that with my other bot
This was my result using commando, following tests showed a constant speed of 500ms and under
consistant*
This was my result using normal discord.js
As you can see, I chose the better option.
i dont have any problems with normal discord.js if commando is more suitable for your needs you should use it
i dont rlly know how to use it anyways docs doesnt say how to add commands
yeah its a bit strange, I definitely prefer discord.js
yeah, it is
and the actual command is only 2 lines
once you know it though it isnt too bad, its just a lil' annoyin
do you use it for all your discord bots?
no, just this one, my main project Atex uses normal Discord.js
ah
where is this? sorry i'm slow
hi i have a reload command but for some reason only SOME commands reload
the rest the bot does not send anything
only some commands the bot says: command reloaded
discord.js^
this is my code^
Make sure your file name and command name are the same, and your category matches the folder (if you have them).
true
lemme check
i was thinking about that before haha
i also have another quest
i have a balance command
when u mention the dude it shows there balance
but when u put there id it still shows there balance but the title is diffrent
lemme send a example
if(pick == "Lose") {
userData.money += parseInt(robAmount);
authorData.money -= parseInt(robAmount);
authorData.rob = Date.now();
authorData.lastRobbed = user.id;
const embedLose = new MessageEmbed()
.setColor(red)
.setDescription(`You lost, lol.`)
await message.channel.send(embedLose);
}
Should I be using await before each writing?
like it shows mee6's balance but it says that its my balance and gives MY avatar
i don't see why you'd need async/await there
So, no need, right?
no
This post is only returning me a {} empty, what am I doing incorrectly?
this is the other side of post
Your testing is inconsistent. Consider the following: Commando is built off of Discord.js. You are using Discord.js. Your results do not reflect reality as Discord's API latency can fluctuate
if you read my above comment, I said i couldve been testing at a bad time.
...
.then(res => res.json()) // expecting a json response
.then(json => console.log(json));
oh wip wup wap... nvm I see
I did. I was just pointing out that your logic behind "choosing the better library" is flawed because Command is built off of Discord.js. Commando is better suited for beginners because it is a high level abstraction layer
on top of an already high level api wrapper
either way i went off my results, and im too lazy to change (aggain).
But your results are flawed
Totally not sketchy
I found it, I needed to use app.use(bodyParser.json());
Yeah, people forget you can add ftp paths to windows explorer
Maybe it's not configured correctly
I mean server name or address could not be resolved should be obvious
make sure the server the ftp server is running on accepts incoming connections on port 21
and of course if the server address is correct
require the Command class and you put that code right after
you downloaded a Trojan
Make sure filezilla is downloaded by it's original source
you're downloading the wrong thing
I'm not sure why Windows defender should notice a threat
download it from here https://filezilla-project.org/download.php?show_all=1
never use sponsored installers
they are full of shitware and ads
aye
and if you do, always read the installer carefully and uncheck/disable any additional software they may offer
Yes, I will.
does anyone know how to make a global boolean, so it is "true" or "false" everywhere in the project in JS?
just... export it?
wha
what what
what do you mean "just export it"
...export it
The export statement is used
when creating JavaScript modules to export live bindings to functions, objects, or
primitive values from the module so they can be used by other programs with the
import statement. Bindings that are exported can
still be modified locally; when imported, although they can only be read by the
import...
i still don't understand
well you can always use global
global.myvar = true
its still limited to the current process tho, wont transfer to workers or child processes
anywhere
but you have to always use global
global is an object
treat it as such
the moment, where you click very fast and do not read what you are clicking lol
Altough I never install programms, I just have some default apps like word, vscode
.....
still does not work
what does not work?
the global thing
you want export a var?
lemme make 2 sourcebins
reaction handler (where the role adding is happening) https://sourceb.in/WzlkO0IYl8
reaction add event https://sourceb.in/vhJ6BGS4e7
you call the function first
so the function runs before you set the variable
why do you need it to be global there tho? why not just use the adding variable?
before the "const handleReaction"
it won't send it to the reaction handler
why not?
const handleReaction = (reaction, user, adding) => {
console.log(adding)
const { message } = reaction
const { guild } = message
add that console.log there
see what it logs
when the bot reacts: true
when I react: nothing, just blank spaces
then you have something weird going on
idk either
add a console log to the event
make you own system or lemme create it
what are the functions you need?
wha
module.exports = new Event("messageReactionAdd", async (client, reaction, user) => {
console.log(reaction.name, user.username)
handleReaction(reaction, user, true)
add that console.log there
bruh now i restart
and "true" and "false" appeared
instead of the blank spaces
it returns "undefined magma"
and then "true" cuz of the other console log
but roles are not added
put console.logs on every line
analyze your variables
you have a lot of conditions that need to pass before you reach the role adding part
one of those conditions could be failing
console.log the relevant variables
laughs in debugger
@oak cliff google it 
public class Main
{
public static void main(String[] command_line_args)
{
String msg = "!help";
command("!help",msg,()-> {
System.out.println("hello");
});
}
public static void command(String comm,String msg , Runnable func) {
if(comm.equals(msg))
{
func.run();
}
}
}
this might be how I am going to do commands
are you using jda?
javacord
oh ok
just a concept I going to put into practice
why there is pog here and idk what is meant by pog
what is meant by pog
@teal depot @rustic nova
Pogchamp
play of the game
iam javascript
https://github.com/vizality-community/spotify-in-discord
Whats this? is this a Discord Client Modification?
yes
lol, though it xD
https://i.callumdev.pw/3xq77.png
Why does this give Cannot read property 'client' of undefined on the line del(args)
temperate literals
and quotation marks ig
...args
tried that too
you're trying to override the message.delete() function?
why not just catch the error?
lmao
what are you trying to accomplish exactly?
thats pog
the error isnt catching for some reason, so just overriding the function, so far i've this
https://i.callumdev.pw/j4nue.png
https://i.callumdev.pw/jaxf1.png
JAVA SCRIPT IS THE BEST
but why are you trying to do that
did you pass client?
why not ```js
msg.delete().catch(() => {
client.error(cant delete ${msg.id})
})
anyone know python?
I'm trying to make a bot for my friend for his upcoming birthday for his server
Please PING me if you know python and can help
a little bit lol
do you know how to make a embed help menu with arrow reactions where you can turn the page?
thanks!
can someone help
yes
Please do help me lol
yum living for this

?
it's obviously not a userbot that interacts with a pokemon bot
good times
there's obviously no ugly ass code for parsing text from the embed description
(:
i tried getting my old account back but i can't request a new password or anything from support, not even to unlink my 2fa device so i'm fucked
the only thing i can do through email is request account termination
so i did it
sad :c
tripple backed up 2fa codes
whats wrong :c
my bot doesn't want to get verified :c
@fossil grove Wrong discord to ask about verification questions
Use this one: https://discord.gg/discord-developers
I did
i go to the Discord server for bots and say said that this problem is weird cuz stripe said verification submitted
Then why do you keep asking in here
contact discord idk
and they said they can't help me
not much we can do :c
I did from 2 weeks
any reply
I use driver license and identify card and they both are not good
Are you not able to understand english?
Lmao
Im kinda stupid so how would u run a different file from the file your running like for events
In python

discord said that only passport card works in egypt
@nimble kiln
Then use a passport
When my dad wake up
lol so smart

I got help
How would i run a different python file from the file im running for like events
ah okay
Please help
top.gg !== Discord
yes, you have to have basic understanding, I wont spoonfedd the coe
learn js pog
I do i just need help with ONEEE thing pls
Im kinda stupid so how would u run a different file from the file your running like for events
ik js
Thats all i need
is python worth learning tho
Ye
ok
Guys
my ict teacher dissuaded me
I need to ask question
like he did with everything we learnt
Can someone tell me why this doesnt work?
nowhite = message.content.split("http://" || "https://")
Https will be ignored?? while http wont.
|| checks if the first value is undefined and takes the second one, but it is not
split(/http:\/\/|https:\/\//gi)
just because it's case-sensitive
use the regex I mentioned above
hmm, thanks, my regex sucks, what does gi mean again?
global and insensitive
thanks
I always tried to learn regex, but only know some basic stuff, thanks will look into that
you might send the corrosponding code, we don't own magical glass balls
im soon at 75 servers
#roadtocertification
Same issue
;p;

yeah we got it... calm
tip: lowercase your string before passing that, i recall a friend told me its faster than letting regex handle the insensitive by itself
indeed, wont matter too much but still worthwhile
yeah... I didn't mention the easy way. lmao
in .net5 there's like a 10us difference between using IndexOf and basic regex for a basic lookup, IndexOf being faster
so it like
varies i guess
Yeah
And ceetain regex engines being faster and more powerful than others
If you have multiple things you want to find though regex is likely faster in the scale size depending on engine
Certain things will allow the regex to use certain algo's to reduce the time complexity
anyway toLowerString() is easier and faster for his case... but I like to do things more complicated

lets do it even more complicated
take the codepoint of every character in the string then offset them so you get lowercase codepoints 
i wonder how expensive that would be to actually do
that's basically what toLowerString does internally i guess
and compare the match after with a regex if both conditions are the same 
the challange to make things as slowly as possible
Thats pretty easy with regex
run the code on a microcontroller hooked to a 1MHz clock 
lmao
Unless you're something like the rust regex engine just get a infinite look back ez
god... dude I'm unbelivable bored
sitting here watching proxmox letting install my vms
Proxmox 
happy proxmox noises
I finnaly finished my economy bot well with commands
why
looks fun
how do i add shard to my discord bot
left shift
if you have the binary 00001
and you do << 3
you will get 01000
moves the number 3 binary digits to the left
speaking of bitwise
im already at a factor of 23 digits on my fields

and they prob gonna increase
cool, like x100
if you get to 32, you have to switch to bigint
im trying to learn python any tutorials for beginners
you can try using tricks on it if you dont want to use bigints
reserve a digit for a master switch and bam, you have double the possibilities
but then you need 2 numbers
lmao
i didnt think this through
still, 2 numbers is gonna be faster than 1 bigint
nono, bigint is fine, but its getting soooooo fucking big
i AM using bigint already
then you're fine
since its internally used, i shouldnt bitch about it
but it gets exponentially bigger
cuz im multiplying by 2 every time

yes thats normal
it feels like its a lot
but its not
its just a single extra bit every time
imagine a 512bit bigint
That's what she said
this is a big number
ikik, like i said i shouldnt be bitching about it, its used internally
anyone here familiar with instagram integration? I can't find any bots that handle instagram, and I would code my own (I already have a bot for RSS feeds and I've done some twitter stuff) but I don't know enough about instagram
I know what instagram is, (images & videos) but I don't know enough about the under the hood stuff
a lot of the options I have looked at only link your own instagram account, not other people's instagrams
Same
lmao
i suggested an instagram bot a couple months ago
i dont think theres any that do that
you'd need to code own yourself
here specifically
i could probably set one up, but i dont have time to do that rn
Ah alr
I can probably do it, just need some input from someone that knows more about instagram than me
i doubt there'd be much input tbh, you would have to reverse engineer their api or use puppeteer i think
do you think we could just fork TweetShift? (direct it to instagram instead of twitter) I'm sure there's elements of the mechanics I missing here though.
One message removed from a suspended account.
i would personally start something from scratch
i did my own library for a youtube bot
cuz theres not a single one out there
if i were you, i would do the same
of course, mine is private
but it'd be best to make it yourself in all honesty
i would be interested in doing it tbh, an instagram bot for discord
though i would proof it, asking the people who are attempted to follow permission before having the bot post their stuff
!follow @ user
then on instagram, fetch that user and dm them asking if they want to be integrated onto discord
I'd be using to follow public instagrams, (fan pages, etc. not individuals' private instagrams)
i would personally allow privates too
a lot of people enjoy it
but ask for confirmation beforehand
use a db with all followed/requested users
put a status on them
allowed | requested | denied
could likely have a global feed and private scope
so you can have feeds on discord only on specific users
could make it quite interesting tbh
like i said, i'd love to help, but i've got a lot of coding to do already
postgres , redis, typescript, axios and detritus
i'd pick that bunch for everything
make the wrapper/lib for instagram using axios and postgres
and use redis and detritus to handle the sending messages to discord and the caching
personally, that'd be what i'd use
hug
How can i make it in a embed message that the title is connected with a link but isnt blue
i dont think you can, even if you put author it should still be blue
If I have a bot running in only 1 server where it edits a message every 30s for 7 days I should be ok when it comes to rate limiting right?
30 seconds should be fine
Ok. I originally had it at 10s but I can get away with 30 and it seemed the safer option
in only 1 server, its fine.
THOUGH, just a fair warning
Discord has a very loose interpretation of API abuse; as quoted by them:
@Danny automating the API in that way /is/ abuse. Automatically doing "X" every N is generally not a good idea. Where X could be posting a message, changing someone s nickname, renaming a role, changing a channel topic, etc...
Generally bots should only react to user actions...
Although, for very large N we generally don t care. But for small N, we do care. Think rainbow bots, etc....
"N" is not really defined, as rate limits are not a good thing to try to get very close to. You re going to have to mostly use common sense here, compare how close you are the rate limit, how often you do this, etc.
https://cdn.discordapp.com/attachments/272764566411149314/604449094680707072/unknown.png
generation process begins... 
What are you doing? 😮
moving a database to a new machine... more regenerating it than moving
ugh what
damn thats a huge db
800GB database
Rows 4,000,000,000
what kind of content does it have?
id and hashes of the ids
you are very curious 
xD
yeah
interesting how almost 2 thirds of it is indexes and not actual data
databases are really not made to be space efficient
just as fast as possible
yeah there's no better way unfortunally
aye
need to index both hash columns which made it huge
just make it damn fast responsive
game server protocols are providing user ids which are hashes of steam id (for data protection or whatever)
if you know how the hash is built you can easy generate a list of all existing steam ids and lookup the hash to get the actual steam id
so you're basically brute forcing hashes lul
going further and comparing this with rcon protocol data you will get all kind of data... ip adresses, activities, etc. to them for geo location lookups and merics
damn
yeah which makes me be able to provide services like activites and bascially a whole history of users seen on steam
unless the data is provided or share with me which increases my data collection
and made it more accurate
the more game service providers wanna know my user history data and provide their data to me, the more data I have and even more accurate it gets
ew not really
a lot of big gaming communities wanna know which players are playing on their servers
the history, possible bans, cheats, geo location, all ever used IP addresses etc.
just to decide to let people in or block them
isnt that a lot of privacy violation?
huh what privacy? never heard that word in my life
lmao
it's actually not
at the moment you connect to a game server for example you accept the ToS of the game and Steam and the game service provider (the hoster)
which means your telemetry data (ip address) will be logged etc.
anywhere you send your packets to, you know
now imagine a game service provider wanna block certain countries or blocked accounts etc.
ah so you're providing this system for the service providers
ah
in return they've unlimited access to my API
looking up the hashes to get the actual steam id (the real identity of the player)
and any ever collected telemetry data with it
I've also built backend tech to scan certain anti-cheat platforms for responses about the target steam id
watching, investigating and reverse-engineering how apps and games did those requests and boom rebuilt it with php and now js
awesome stuff
hmm all this started while managing and developing backend, apps & tools for gaming communities
some good profit at least 
only issue is the size of the data
and I'm currently moving all the stuff to new servers
hardware has changed a lot in the last year and my intel servers are overpriced and outdated
is it possible to make like a beg command in python or smt like it
damn
what about it?
no no last time I was using = but that time I used .
em.embed?
no embed=em
yes
check dms
can anyone help me with ngrok?
i keep on getting 404 page not found
this is the code (just testing something that works so dont judge the code)
i get this
its a barebones system i dont see why it doesn work
no what?
Can someone help me to add images/videos to my bot page?
Fixed my issue
Guys help me
if i were to make a snipe command, what would be the collection?
Collection<string, object>
?
TextableChannel.messages.cache: Collection<string, Message>
how do I convert ["a", "b", "c"] to "["a", "b", "c"]"
should I just toString() it then add the parenthesis at the first and end?
I believe so.
let array = ["a", "b", "c"];
JSON.stringify(array); // "["a", "b", "c"]"
^ Better answer
how do I fix this: https://hst.sh/raw/opunuwupoy
huh?
can someone help me test if my bot works?
Whatever you tried stringifying returned [object Object]
A common default
also, when I use JSON.stringify, my app runs out of memory
So whatever you used it on was very large which caused a very expensive operation
If you've started having issues converting a json to string you should consider using a database
So I read that you can make exe out of js, but i wanted to know if it's recomendable
pkg
Somehow "viable"
I have an object, and it has a lot of data. I want to delete the unecessary data, and keep the important data. What is the best way to do it?
I have the names of the important items
the others can go
Look, that's smelling like json db
json best db jk
If you're using json for read/write data you seriously need to rethink your data storage
Maybe, it rally boils down to what it does
Like, javascript really excels on web stuff
But being monothread means it'll be seriously capped on desktop stuff
It's still possible to make a fully functional desktop app in js, but optimization is a must
Is js slow?
It's not that it's slow
im so confused
It's the thread issue
Doing heavy calculations on render thread makes the UI slow
And js works on a single thread
That means, fuck js for desktop go learn some c++
K gotta take that in consideration
C++, c#, java, delphi, etc etc
There're probably a myriad of other desktop langs out there
I can only name those
Any good lang if im already familiarized with js?
You'd be looking for a dynamically typed lang with OOP capability
Idk about any that's as abstract as js
Well, I mean
There's lua but I've never seen it anywhere outside of its very specific niche
Python also has thread issues
O fck
But it's a different issue than js
Then a c based programming language?
You see, threads in python are either:
A - Synchronized
B - Totally isolated processes
Sync threads are useless
And isolated processes can't be called threads at all
That'd be a better option
Does wine run that type of apps?
Iirc c# runs on linux
Web langs, embedded langs and desktop langs. Each to their purpose
Hmmm ok
Binary diff
Before learning programming I thought programs were made with batch
Before I learned programming I thought all programs were mathematically programmed pixel by pixel
Wtf
Like, I imagined that game devs just programmed every specific pixel to change
for some reason
tbf I was like 11
Oh yeah, and I thought .dll files were manually written as well. Since I opened them with a text editor and was like "woah this looks weird"

unnecessary


