#development

1 messages · Page 1402 of 1

earnest phoenix
sudden geyser
#

yes

earnest phoenix
#

alright

#

it's time to kill myself 😄

#

YAAS

hollow sedge
#

is java still a preferred language for some applications?

earnest phoenix
#

yes

sudden geyser
#

yes but imo it's slowly decreasing

earnest phoenix
#

guys, i wanna use Android Studio but with JavaScript, is it possible?

sudden geyser
#

like the only thing I can name Java with is Android and they've got Kotlin now

hollow sedge
#

the only thing java is useful for is minecraft modding /s

sudden geyser
#

all my homies use kotlin

hollow sedge
#

what about react?

stark abyss
#
Error: EACCES: permission denied, open './../../remind.json' error found```
I have made a json file and I am trying to input some data in it
solemn leaf
#

@boreal iron what about a switch

pure lion
#

Dumb question, is js oop?

stark abyss
#
    if(accounts[userID] == undefined){
        accounts [userID] = {
          reminder: 'History opinion paper',
          time: Date.now()+millisecs
        }
        fs.writeFile ('./../../remind.json', JSON.stringify (accounts, null, 4), err => {
          message.channel.send("Account created... ![letsdance](https://cdn.discordapp.com/emojis/757090583121625138.webp?size=128 "letsdance")")
          if(err) return console.log(err + " error found")
        })    
      }```
stark abyss
#

Yes

pure lion
#

Are you using JSON as a database?

earnest phoenix
#

Ok.

#

json as a DB?

stark abyss
#

Sort of but ONLY for me

boreal iron
earnest phoenix
#

json cannot work as a database ._.

hollow sedge
#

it can

#

but not a good one

stark abyss
#

yeah it's just bad

earnest phoenix
#

use a DB to make it work

pure lion
#

At least use quick.db

stark abyss
#

You know what it's okay guys

pure lion
#

Literally anything other than JSON will do

sudden geyser
hollow sedge
#

oh

stark abyss
#

lmao I am aware

earnest phoenix
sudden geyser
#

it has oop traits but not as oop as languages like java

boreal iron
#

@solemn leaf that code is just an example how it works, you’re good to add, edit whatever you like

earnest phoenix
#

some libraries do follow OOP principles but js itself in nature isnt oop

hollow sedge
#

what parts of OOP in java are not in JS?

sudden geyser
#

too many to list

hollow sedge
#

alright lol

earnest phoenix
#

are js and java similar?

sudden geyser
#

no

#

no where near it

hollow sedge
#

didn't you just ask that?

earnest phoenix
#

Hey

earnest phoenix
#

is that normal ?

cerulean ingot
#
    @commands.command()
    async def dbl(self, ctx):
        url = "https://top.gg/api/bots/721506633074737233"
        headers = {"Authorization": self.bot.dbltoken}
        r = requests.get(url, headers=headers)
        print(r.content)
        embed = discord.Embed(title="Top.gg stats", description=f"Votes this month:\n{r['monthlyPoints']}Certified Bot:\n{r['certifiedBot']}")
        await ctx.send(embed=embed)``` its printing what looks like to be my bots description and this error:
```TypeError: 'Response' object is not subscriptable```
boreal iron
#

@boreal iron updated the code a few times, make sure u got the latest version

earnest phoenix
#

the main difference is that in js objects are completely mutable, you can change the properties, values, anything - on the go because js objects are internally just fancy dictionaries/maps

boreal iron
#

Ahh wtf

#

Discord mobile is trash...

hollow sedge
#

isnt that python too? @earnest phoenix

earnest phoenix
#

i don't think so

quartz kindle
cerulean ingot
#

what i sent was python

hollow sedge
#

🤔 ok

earnest phoenix
hollow sedge
#

thanks for explaining

solemn leaf
#

@boreal iron if title is null cant you just do if (!title?

sudden geyser
#

@cerulean ingot I think you'll want to use r.json() to convert it to json

quartz kindle
boreal iron
#

Null !== false

quartz kindle
#

every time i try ts i just spend most of the time fighting against ts itself rather than actually coding

pure lion
boreal iron
#

The user could for example enter -t:false or -t:0

earnest phoenix
#

if (!title) return;

boreal iron
#

Which would cause an error

earnest phoenix
#

object immutability, proper types, everything is focused around classes

#

while js is the total opposite

boreal iron
earnest phoenix
#

so that means JS is better?

quartz kindle
#

lmao

earnest phoenix
#

nope

hollow sedge
#

no? I think it just means they are both good at different things

earnest phoenix
#

"x language is better" isn't a general term, one language isn't better than the other when you look at them as a whole, every language has its use where it excels at

solemn leaf
#

I did

earnest phoenix
#

the language you should use depends on the project you want to make

#

oh

quartz kindle
#

js is designed to have a low learning curve and to boost productivity by simplifying a lot of concepts that are better defined in other languages

solemn leaf
#

@boreal iron for the title or dis how does it work like how do you amrk it

earnest phoenix
#

my eyes has been opened

#

lol

boreal iron
#

Wut?

stark abyss
#

what's the best thing you guys have coded

quartz kindle
#

my bot i guess lol

pure lion
#

My game engine in C

stark abyss
#

same lol

#

you made a game engine?

pure lion
#

Probably not my RTC app that doesn't wanna work

pure lion
#

On my GitHub

earnest phoenix
#

i made c# and java communicate in minecraft

sudden geyser
#

some mobile app, but I'm nowhere near done

stark abyss
#

Nice

#

What's the app about?

pure lion
#

I messed up a function somewhere so the rays don't draw correctly sometimes but it works and that's what matters

stark abyss
hollow sedge
pure lion
#

C:

earnest phoenix
solemn leaf
#

@boreal iron so like t:a

stark abyss
#

😮

earnest phoenix
#

thread injection and c# channels

#

really fun stuff

stark abyss
#

Seems cool but i still don't understand lol

boreal iron
#

What’s about t:a? Didn’t get what u mean sorry

solemn leaf
#

luau exploit detection

#

title:Title is Hello!

quartz kindle
#

i have an unfinished project for a userland map implementation

#

using sharedarraybuffer in node

stark abyss
boreal iron
#

Oh... with spaces

#

Didn’t know that

solemn leaf
#

oh lol

boreal iron
#

That makes my code obsolete

solemn leaf
#

for the announcement there has to be thou

boreal iron
#

Damn didn’t think about that is needed

stark abyss
#

I am learning react native stuff to make an app [no clue what's it gonna be]

boreal iron
#

Well then that requires to split different

quartz kindle
#

im sick and tired of web dev in general lul

pure lion
#

@quartz kindle learn x86asm with me

stark abyss
#

I find react native fun because it's more visual stuff

quartz kindle
#

@pure lion ew no

earnest phoenix
#

please i have actual ptsd from asm

pure lion
#
mov me to the bin```
quartz kindle
#

i dont wanna go any lower level than c++

boreal iron
#

@solemn leaf nothing i can do now on mobile, let’s continue tomorrow

quartz kindle
#

i already hate c++

pure lion
#

I am going to learn asm

solemn leaf
#

I know its good

quartz kindle
#

because im really bad at it

pure lion
#

Nobody can stop me

earnest phoenix
#

i dont get the point of writing asm because compilers are always going to be better than you

pure lion
#

Nasm is my friend

earnest phoenix
#

but my teacher is making me do it regardless

stark abyss
#

😮

quartz kindle
#

well, knowing asm is good for debugging and reverse engineering i guess

#

if you wanna be a cracker

stark abyss
#

what is asm

earnest phoenix
#

on compiled apps

quartz kindle
#

assembly

stark abyss
#

nice

earnest phoenix
#

node unreal engine port when

quartz kindle
#

i tried reversing a delphi program and failed miserably

pure lion
hollow sedge
#

you should try Godot

#

its language is similar to python

earnest phoenix
#

i've heard rust is great for easy UI so i'm giving it a try this week

quartz kindle
#

rust has ui?

#

or it uses some native lib

pure lion
#

Rust is the ui

#

You write the code and it works

earnest phoenix
#

there are a fuckton frameworks

pure lion
#

I should learn rust

quartz kindle
#

rust is the nodejs of c/c++

pure lion
#

Then why learn rust when you can learn qt

pure lion
sudden geyser
#

I don't think Rust is that popular for building uis

quartz kindle
#

deno is go in js

pure lion
#

Isn't go like

quartz kindle
#

idk, never used it

#

but from looking at it, looked a bit more complex than js

pure lion
#

It's supposed to be anyway, there are very few keywords

amber thistle
quartz kindle
#

how do you english

pure lion
#

Use css

#

Inspect element and find elements by their ID

#

I believe el botum thingy is .container

amber thistle
#

ai mean

#

where do ai type the css?

pure lion
#

In the long description

amber thistle
#

the min 300 character desc?

pure lion
#

Yeah

astral yoke
#
const { MessageEmbed } = require('discord.js')
module.exports = {
    config: {
        name: "add"
    },
    run: async(bot, message, args) => {
        if(!message.channel.name.includes('s-ticket'))return;  
        if(!(args[0])) return message.channel.send("Not a valid user!")
        let Channel1 = bot.db.get(`channelid_${message.author.id}`)
        let channel2 = message.guild.channels.cache.get(Channel1)
        channel2.overwritePermissions(args[0], {
            VIEW_CHANNEL: true,
            SEND_MESSAGES: true
        });
        message.channel.send("User has been added.")
        }  
}```
#
    at TextChannel.overwritePermissions (E:\clientbots\ZeroBot\node_modules\discord.js\src\structures\GuildChannel.js:208:9)
    at Object.run (E:\clientbots\ZeroBot\src\commands\tickets\add.js:12:18)```
#

number 12 is the channel2.overwrite

#

fixed^

earnest phoenix
#

can someone help me with this error?

    at Object.readdirSync (fs.js:1021:3)
    at requireAll (/Users/lorenzo/Desktop/Modbot-2.0/node_modules/require-all/index.js:32:18)
    at CommandoRegistry.registerCommandsIn (/Users/lorenzo/Desktop/Modbot-2.0/node_modules/discord.js-commando/src/registry.js:190:37)
    at Object.<anonymous> (/Users/lorenzo/Desktop/Modbot-2.0/index.js:78:4)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/Users/lorenzo/Desktop/Modbot-2.0/commands'
}```
umbral zealot
#

Clearly there's no folder called commands in the Modbot-2.0 folder

earnest phoenix
#

ohh

#

im dumb

#

thanks

solemn leaf
#

bruh

umbral zealot
astral yoke
#

command:

            .setTitle('Ticket Deletion')
            .setDescription('Are you sure you would like to delete this ticket?')
            .setColor('75188c')
            ).then(embedd => {
                embedd.react("✅")
                embedd.react("❌")
        
        bot.db.set(`${message.guild.id}-close`, embedd.id);
            })```
index:
```let closeid = bot.db.get(`${reaction.message.guild.id}-close`);
    closeid.delete()```
error: ```UnhandledPromiseRejectionWarning: TypeError: closeid.delete is not a function```
#

how would i get that to delete the embed?

rustic nova
#

Fetch the message through the message id

astral yoke
#

i didnt even think of that ty

pine ginkgo
#

Hey

cerulean ingot
#

how do i make it float and turn like this

pine ginkgo
#

ı need gelp

cerulean ingot
#

like the avatars floating

astral yoke
#

dont ask to ask

cerulean ingot
#

and the logo for dbl is turning

astral yoke
#

Ertassla

rustic nova
#

@cerulean ingot css and html

cerulean ingot
#

yeah

#

im trying to inspect to see what the did

#

but cant find it

earnest phoenix
#
Animista CSS animations on demand

Animista is a place where you can play with a collection of ready to use CSS animations, tweak them and download only those you will actually use.

#

generate your css animations there

#

paste them into the style tag

drifting wedge
#

how can like when i update the switch thing, and it register

#

i show an element

#

saying like: oh yay the thingy updated

#

it would be js right?

placid iron
#

Yes

drifting wedge
#

i "love" js

#

its so fucking annoying lmao

#

alr

placid iron
#

Onclick="togglemodule(this)"

#

Then have like

#

Def togglemodule(self) {
fetch("patch","/togglemodule", JSON={"name":self.id}) bx g bxstjcde

#

Yeah idk

drifting wedge
#

ty tho

placid iron
#

Look at my website is you want to

#

If do that

earnest phoenix
#

hey guys

#

what's the function to make the bot start typing

rustic nova
#

@earnest phoenix

#

Oh woops wrong one

#

This is the correct one

earnest phoenix
#

i need more help

umbral zealot
#

It needs to be on a channel

earnest phoenix
#

Hmmm?

umbral zealot
#

You start typing on a channel

#

you need a channel object first

earnest phoenix
#

o

#

w

#

like

umbral zealot
#

like... channel. or message.channel.

earnest phoenix
#

channel.startTyping()

#

?

umbral zealot
#

An actual channel object you've selected, which is the one you want to type in.

earnest phoenix
#

msg.channel.startTyping()

#

?

umbral zealot
#

if that's what your message variable is defined as... sure.

earnest phoenix
#

alright

#

and yes, i defined my message variable as msg

drifting wedge
#

how can i find the server~s region:

#

dpy:

earnest phoenix
#

thx

#

the bot starts typing but the rest of the code doesn't has executed

quartz kindle
#

discord.js's startTyping function cannot do that

earnest phoenix
#

uh

quartz kindle
#

they chose to implement it in a very weird way

earnest phoenix
#

so it works as a return?

quartz kindle
#

the await/then only fires when it finished typing

#

not when it starts typing

south sinew
#

^^

#

Its hard to make it work reliably as well

earnest phoenix
#

ow

quartz kindle
#

you're better off using client.api directly

#

await message.client.api.channels(message.channel.id).typing.post()

sly elk
#

yuh

earnest phoenix
#

nvm i'll use my last code

#

for my command

drifting wedge
#

if i have a box

#

how can i space out text in the box

#

like so it works for all resolutions?

#

like how do i move stuff, but it works for all like resolutions?

#

html

#

ping

umbral zealot
#

You should look up "Responsive web design"

#

it's a very extensive topic

earnest phoenix
#

f l e x b o x

#

obviously you still need breakpoints for some stuff but flexboxes make responsive design not a pain

fresh sky
#

I have a question for discord.py:
What would I use for manage channel permissions has_permissions(????, manage_Channenls???? Channel_edit????)

rustic nova
#

Manage channel permissions in general

#

Or what library are you asking about?

earnest phoenix
#

can someone help with this error code?
Error: Cannot find module './src/structures/ProtoTypes

solemn leaf
#

No?

#

bcs that could be anything

#

npm etc

#

reuire?

#

require?

umbral zealot
#

All this is saying is that the file ./src/structures/ProtoTypes doesn't exist. Beyond that, we can't say.

spice hearth
#

j

solemn leaf
#

Can I get help making my command go until it see's an different embed arg

drifting wedge
#

wdym

#

@solemn leaf

solemn leaf
#

After the h in the title

#

it should have been h a

boreal iron
#

Hehe gonna solve your puzzle this evening don’t worry

solemn leaf
#

evening lol

#

i went to bed lmao

boreal iron
#

Me too

solemn leaf
#

just dm me anything you do

#

bcs I prob wont see it

zenith gazelle
#

I have to resubmit my bot for approval because at the time of verifying my bot I accidentally had a 1 in my code that was not supposed to be there

#

all I feel is pain

earnest phoenix
#

lol damn

zenith gazelle
#

why can't we delete applications?

#

oh we can

#

I am super blind

#

2 years I have been under the impression we can't

earnest phoenix
#

hi guys i have a problem, i recently added an embed but when someone send any message i have an error on the console but the bot still work

earnest phoenix
#

you're missing curly braces so js understands it as ```
if(condition) create embed

send embed //but embed doesn't exist here it's in the if

#

also please get a linter

stable storm
#

Wth

#

Lol

drifting wedge
#

In flask, how can I submit a form but not submit all the forms

#

Rn when I click submit

#

Itmsubmits all the forms in the page

#

Not just the ones in the tag

cerulean ingot
#

is data[“user”] a user id or an object on the vote event

pale vessel
#

ID

slender thistle
sharp rock
#

hmm

cerulean ingot
#

ahh it’s an id in a string that

sharp rock
#

how to make nice help page?

cerulean ingot
#

makes more since

#

so i convert to an int and i’m good

slender thistle
#

Yup

analog tusk
#

Is there a way to check if a message is replied? if yes, can i get the content of the replied message?

pale vessel
#

Yes and yes

analog tusk
#

How & How?

pale vessel
#

Replied messages have the message_reference property which has the messageID, channelID, and guildID. They also have the referenced_message property that has the referenced message object

#

Not sure if it exists inside libraries yet

#

But raw API responses have these

analog tusk
#

any docs, i can refer to?

#

or an example code?

#

@pale vessel

pale vessel
#

You probably need the raw event from your library

#

I'm not sure

analog tusk
#

Ok Thanks!

pale vessel
#

Yeah, The reference object

#

Under message

analog tusk
#

👍

pale vessel
tardy hornet
#

for some reason its not letting me download quick.db

tardy hornet
#

long one

#
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (D:\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "D:\\node.exe" "D:\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\ronbr\OneDrive\שולחן העבודה\warn bot\node_modules\better-sqlite3
gyp ERR! node -v v12.18.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.1 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.1 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ronbr\AppData\Roaming\npm-cache\_logs\2020-11-23T06_32_45_358Z-debug.log
npm WARN warn-bot@1.0.0 No description
npm WARN warn-bot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.1 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ronbr\AppData\Roaming\npm-cache\_logs\2020-11-23T06_32_45_687Z-debug.log
PS C:\Users\ronbr\OneDrive\שולחן העבודה\warn bot>
tardy hornet
agile lance
#

seems like the issue at “better-sqlite3@7.1.1”

pure lion
#

@tardy hornet you need windows build tools

lyric pumice
#

how develop bot?

tardy hornet
#

but i cant download it to my second one

lyric pumice
#

why?

#

ohh just so you know i know i can code

pure lion
#

@tardy hornet is this a separate machine?

#

@lyric pumice what lang?

lyric pumice
#

???

#

what do you mean?

pure lion
#

What language lad

lyric pumice
#

english

tardy hornet
pure lion
#

@tardy hornet strange, try reinstalling build tools anyway

tardy hornet
#

is it

pure lion
#

@lyric pumice coding language tho? You clearly don't know 🐅

tardy hornet
#

npm install --global windows-build-tools --vs2015

#

?

pure lion
tardy hornet
#

okay what now?

pure lion
#

Follow the guide

tardy hornet
#

i did

lyric pumice
#

...

rustic nova
#

If you have literally 0 clue what a programming language is, then don't get into bot development

#

Start with programming in general

lyric pumice
#

ok

rustic nova
hasty mulch
#

How do I pull my bot username and tag into console in Python?

slender thistle
pure lion
#

print(klsdksidiais

#

Thanks shiv

hasty mulch
slender thistle
#

user.discriminator

#

Or just

#

if you want name#tag, just print bot.user directly

#

__str__ method of it gets called and that returns name#discriminator

hasty mulch
#

Thanks

#

I was using {0.user} for some reason

slender thistle
#

Oh, you were doing "{0.user}".format(bot)

#

I mean, if your Python version is above 3.6, use f-strings

blissful raft
#

I no longer have to find a new way to host my bot, the one dependency I needed finally installed

slender thistle
#

f"{bot.user}"

pure lion
#

@slender thistle what is an f string

#

Like template strings in js?

solemn latch
#

yes

earnest phoenix
#

no

#

Format string

slender thistle
#

yeah

#

pretty much tbh

pure lion
#

Alrighty

earnest phoenix
#

format string in python, tbh

slender thistle
#

f-strings are literally called that

hasty mulch
#

And how do I do a welcome message?

earnest phoenix
#

Uh.

slender thistle
#

on_member_join

hasty mulch
#

Thanks, Shiv

#

gives cookie to Shiv

slender thistle
#

Server staff set up ID of the channel where they want welcome messages to be.

You later:

  • retrieve that ID (most likely from a database or cache, maybe even both);
  • get channel with that ID;
  • possibly create an embed or a message including member name/mention;
  • send message.
sharp rock
#

hmm

hasty mulch
#

It’s for my private bot

slender thistle
#

Ah, less hassle then KEKW

hasty mulch
#

The one with the fancy APIs and that time command

#

How do I call it? Async function?

slender thistle
#

on_member_join is an event

hasty mulch
#

Then how do I trigger it in code?

slender thistle
#

You simply set it up to do something and discord.py will call the event whenever it receives an event from Discord

#

It's an event for a reason. You don't call it manually, but instead add a listener for it and then let discord.py call it whenever a respective action happened

cosmic spear
#

can someone help me making of {prefix} + vote command

#

on javascript

#

I want users to be able to vote with commands

rustic nova
cosmic spear
#

yeah

rustic nova
#

You cannot vote on users behalf

cosmic spear
#

I did not mean that

#

I mean users of the bot, should be able to vote with a simple command

#

with cooldown ofc

rustic nova
#

Vote for what?

cosmic spear
#

vote for bot

rustic nova
cosmic spear
#

...

#

you really don't understand me

#

there is like many bots doing that

#

without going to the website

#

whatever

rustic nova
#

That's what you're telling me tho AngryThonk

cosmic spear
#

I mean

#

imagine the "vote" button of your bot on top.gg is equal to your !vote command

rustic nova
#

Yeah

#

You cannot do that

cosmic spear
#

okay ^^

#

thanks

earnest phoenix
#

vt!vote ...

rustic nova
#

That is tracking

#

Draxaya is referring to voting for the user

#

That The Bot votes for the user

earnest phoenix
rustic nova
#

Devs submitting their avatar discord bots

past needle
#

Hi, is it possible in js to get the parameters of a function ? Like for example i have this (stupid) function ```js
function sub(str){message.channel.send(str.substr(0,1900)}

I cannot change that function so is there a way to get a list of the parameters of this function ? It doesn't matter if typoef `["str"]` ^^

Thanks for anyone who respond
earnest phoenix
#

@past needle arguments is an array in functions

past needle
#

like sub.arguments ?

earnest phoenix
#

just arguments

#

the contents of the array depends on the function

#

using it outside a function scope throws an error that arguments is not defined

past needle
#

i still don't get how i can get the parameter(s) :-:

earnest phoenix
#

parameters and arguments mean the same thing

#

javascript only has one variable named arguments tho

past needle
#

o ok

#

thanks ^^'

earnest phoenix
cinder patio
#

You can also do

    // strs is an array of all the args
};```

something("String 1", "String 2", "String 3", ...);

#

^ The method above also works for passing arrays, while arguments doesn't

past needle
earnest phoenix
#
function logArgs(firstArg, secondArg, thirdArg) {
console.log(arguments);
}

logArgs("this is the value of the first argument", "this is rhe value of the second argument", "this is the value pf the third argument");
past needle
#

oh

#

i'll test it

cinder patio
#

Outside of the function??

earnest phoenix
#

idk how

pale vessel
past needle
#

no i want to get the name of the parameters

#

qvq

#
function something(first,second){
console.log(first + ' - ' + second)
}
// the names of the param are "first" & "second"
cinder patio
#

Why would you ever want to do that

#

You can turn the function to a string and then use some regex to find all the parameter names

rose warren
#

Use dynamic: true as an option

#

In d.js at least...

#

Do format: png and dynamic: true

peak venture
#

discord v12 works like this yea?

#

client.channels.cache.get("CHANNEL_ID").send(Sembed);

cinder patio
#

yes

near stratus
earnest phoenix
#

FAAAAAACCKKKKQQQQQQ TAIMZUNES

fickle sapphire
#

XD

violet haven
#

hi!

#

i have a problem with ionos byy 1&1

#

can u help me?

hasty mulch
#

How can I restrict a command to people who have voted for my bot in Python

stoic girder
#

Then you can check in the DB if user voted in each command.

hasty mulch
#

Is there another way?

earnest phoenix
#

@hasty mulch yes

stoic girder
#

Maybe to escape the DB thing, you could store user IDs directly in a variable?

earnest phoenix
#

just send a request to the dbl api to check if a user has voted

#

no need to store in a database

stoic girder
#

Oh interesting

#

Thats possible? O.o

quartz kindle
#

possible yes, ideal maybe not

earnest phoenix
#

@quartz kindle NO YOU CANT JUST LEAVE H GANG

#
Tim.hackAccount()
Tim.setUsername("Him")
quartz kindle
#

didnt everyone leave already?

earnest phoenix
#

nope

#

@zinc fable is still here

#

so is bean

static oriole
#

Hello

tulip ledge
#

hi! If you want to ask a question just ask directly no need to ask to ask 🙂

sweet ravine
#

Can anyone help me? How can I get my bot avatar round and animate it on the bot page.

boreal iron
#

Use CSS to set a border-radius and whatever attribute to animate it.

sweet ravine
#

I have no idea about css so I ask here 😂

pulsar bone
#

i tried using
message.channel.send("@ **#6226")
but it didn't mention the user

#

i also want to mention some other users along

#

like if i want to mention all my alts from this command

#

mentioning all my alts

kind thicket
#

isnt it easier to give them a role instead?

pulsar bone
#

i want to do something else

#

just take it as alt handler

kind thicket
#

<@userID>

pulsar bone
sweet ravine
#

Can anyone help me? How can I get my bot avatar round and animate it on the bot page.

solemn leaf
#

lots of css

quartz kindle
#

@earnest phoenix delete line 3 lol

#

thats not how any of this works

#

pls learn js

solemn leaf
#

LOL

umbral zealot
#

Help me, I'm dumb!
Are you actually dumb, as in, lacking the mental fortitude to code, or are you just lacking the experience and knowledge to understand the code?
Because if you're actually just dumb, the only help we can provide in terms of bot coding is "don't code bots, use those that exist".
if you're just lacking experience, then there's a solution and it's "just take the time to learn javascript and you'll be fine".
Most people that say or think they're dumb, it's just because they're rushing into thinks head first and being overwhelmed by a lot of information all at once. Anyone would be!

solemn leaf
#

i am dumb

#

feed me

delicate shore
#

Bot can play videos ?

#

Holy shit

#

How

umbral zealot
#

not that I know

drifting wedge
#

any1 help me split up text inside a box

#

like i have a div thing with a certain height and width

#

how can i like separate the text equally

#

?

umbral zealot
#

"separate" how?

drifting wedge
#

1 sec

umbral zealot
#

between what and what?

drifting wedge
#

like it works

#

but on my big montior

#

its the same like stop

#

stop*

#

spot*

umbral zealot
#

sounds like a job for CSS flexbox

drifting wedge
#

lemme try

narrow axle
#

Where ı can show my bots?

drifting wedge
#

css flexbox or html style?

#

both work i assume?

umbral zealot
#

the fuck is "html style"? lol

#

flexbox is a CSS system

narrow axle
#

I asked a thing?

drifting wedge
#

style="peepeepoopoo"

umbral zealot
#

that's... still CSS

drifting wedge
#

display : flex;

#

ik

#

but its more loweffort pog

umbral zealot
drifting wedge
narrow axle
#

Bruh

drifting wedge
#

there ya go 😉

earnest phoenix
#

a

drifting wedge
#

@umbral zealot flex box is display: flex?

narrow axle
#

I mean for bots where ı need to put it

umbral zealot
#

That's one of many CSS properties related to flexbox

#

you need to learn the entire system

drifting wedge
#
.statcard {
    background-color: #1c2024;
    border-radius: 7px;
    height: 60px;
    length: 550px;
    padding: 40px;
    margin-bottom: 30px;
    border: 0px;
    box-shadow: 0px;
    vertical-align: middle;
    display : flex;
    align-items : center;
    justify-content: center;
  }``` this is the css thing rn
umbral zealot
#

and it's not easy

drifting wedge
#

ok ill learn

#

:p

#

w3 schools time

quartz kindle
#

dafuq is length 550px

#

dont you mean width?

drifting wedge
#

oh

#

smort

#

im dumb as fuck

quartz kindle
#

ex dee

narrow axle
#

Where can ı verify my bot

mint charm
quartz kindle
#

you mean approve your bot in top.gg?

umbral zealot
#

You'll know when it's time to verify it 😄

#

top.gg doesn't do "verification"

narrow axle
#

To take the bot creator tag

umbral zealot
#

You mean "Bot Developer"?

quartz kindle
#

you mean the "bot developer" role in this server?

narrow axle
#

Yea yea

umbral zealot
quartz kindle
#

^

narrow axle
#

Alr thx

quartz kindle
#

then you wait

mint charm
#

your bot must be approved in top.gg

narrow axle
#

Wt?

mint charm
#

like you submit your bot in top.gg, and then wait till they approve it

narrow axle
#

Alr

quartz kindle
#

btw your bot needs to be online and working when they review it

umbral zealot
mint charm
#

if your bot doesn't stay 24/7, put a time where your bot can be online so they can test it at that time

boreal iron
#

So-Mo 16:00 - 16:01

mint charm
#

well it will stay for 5 minutes atleast when you close your coding

quartz kindle
#

0.069% uptime

#

nice

boreal iron
#

lmao

solemn leaf
#

false

narrow axle
#

Dude its so hard ı cant verıfy

solemn leaf
#

discord api isntt hat slow

narrow axle
#

My brain is exploding rk

quartz kindle
#

why lol

#

whats so hard about filling up a form?

narrow axle
#

Idk

#

I cant fide lol

#

And ı dont have any website

quartz kindle
#

website is optional

narrow axle
#

Wdym

umbral zealot
#

If you've made it all the way to have a functional bot but a simple form asking you for IDs and a description confuse you, maybe you should wait a bit until you submit your bot ^_^

quartz kindle
#

its optional

#

not required

#

you dont need to put anything there

mint charm
#

^

narrow axle
#

Ohh

#

Alr

#

Im relaxed

pure lion
#

if there is a red star you have to put it

quartz kindle
#

if there is a death star you have to run

pure lion
#

if there is a dark star you have to insert a reference to that tv show

quartz kindle
#

if there is a yellow star then you're watching fnatic 6 years ago

narrow axle
#

WTf

#

İs this real lol

mint charm
#

what real

quartz kindle
#

is this real life?

mint charm
#

no, its a dream

quartz kindle
#

or just fanta sea?

rustic nova
#

fanta sea

#

Either i missed the joke or r/boneappletea

quartz kindle
#

its a tier 3 meme that goes 7 layers deep

earnest phoenix
#

client.users.cache.find(user => user.username === args.join(" ")) How can I put toLowerCase in that variable?

umbral zealot
#

put 'em on both the username and the joined arguments

earnest phoenix
#

ok

#

i go try

zinc stratus
#

How do I ban people from using my bot

earnest phoenix
#

I would need a database

zinc stratus
#

I need a database to ban people from my bot???

earnest phoenix
#

if that's what I'm thinking, yes

zinc stratus
#

Gimme a link

#

Lol

earnest phoenix
#

just follow the programming logic, put to save the user ids in a database, and return in the handler for these users

pure lion
#

should i put .gitignore in the gitignore?

earnest phoenix
#

nop

rustic nova
#

Do it, watch github not work for multiple days

zinc stratus
#

Can i make a command called z!botban

rustic nova
#

How you design your bot command is up to you @zinc stratus

earnest phoenix
#

in bot page

novel slate
#

I´ll just send you my css, gimme a sec

rustic nova
#

if you want to change both buttons, use

.titleandvote .votebutton {
    background: black !important;
}
novel slate
#
.titleandvote .votebutton {
    background: linear-gradient(-30deg, rgba(244,105,13,1) 0%, rgba(248,203,22,1) 100%) !important;
    border: none !important;
    transition: all .2s ease !important;
    color: white !important;
}

.titleandvote:hover .votebutton:hover {
    box-shadow: inset 0 0 100000px 0 rgba(0, 0, 0, .25) !important;
    border: none !important;
    outline: none !important;
    border-radius: 8px !important;
}

.titleandvote:active:focus .votebutton:active:focus {
    background: linear-gradient(-30deg, rgba(244,105,13,1) 0%, rgba(248,203,22,1) 100%) !important;
    box-shadow: inset 0 0 100000px 0 rgba(0, 0, 0, .25) !important;
    border: none !important;
    outline: none !important;
    border-radius: 8px !important;
}```
rustic nova
#

did you add that around <style> tags i assume

novel slate
#

not sure if the :active:focus is needed, but i have to have it on with bootstrap, so i´ll try removing it later

novel slate
#

I can enforce the dark theme, the vote and invite button change

rustic nova
#

through stylus that is

novel slate
#

But, there is an a element that takes you to the reviews. It has the vote-button class, but isn´t affected by the css at all

lethal trout
#

hello i am try to make a rps cmd but the user doesnt win. Either the it is a tie or the bot wins

#
module.exports = {
    name: 'rps',
    description: 'plays rock papaer sci',
    execute(message, args) {

        if (!args[0]) {
            return message.channel.send('Please include your choice!')
        }

        let choices = ['rock', 'paper', 'scissors'];
        if (choices.includes(args[0])) {
            let number = Math.floor(Math.random() * 3);
            if (number == 1) {
                return message.channel.send('It is a tie we both had ' + (args[0]))
            }
            if (number == 2) {
                if ((args[0]) == "rock") {
                    return message.channel.send('**I won!** I had *paper*')
                }
                if ((args[0]) == "paper") {
                    return message.channel.send('**I won!** I had *scissors*')
                }
                if ((args[0]) == "scissors") {
                    return message.channel.send('**I won!** I had *rock*')
                }

            }
            if (number == 3) {
                if ((args[0]) == "rock") {
                    return message.channel.send('**You won!** I had *scissors*')
                }
                if ((args[0]) == "paper") {
                    return message.channel.send('**You won!** I had *rock*')
                }
                if ((args[0]) == "scissors") {
                    return message.channel.send('**You won!** I had *paper*')
                }



            }
        } else {
            return message.channel.send('**Please include either**: *Rock, Paper or Scissors*.')
        }




    }

}```
#

this is the code ^^

rustic nova
novel slate
#

You can edit your bot-description and add the style tags

#

then put the css code in there

rustic nova
novel slate
#

Ne, nicht so xD. Schau dir mal die Seite von Hope an

lethal trout
#

hello?? can someone help me??

rustic nova
#

@novel slate css selector is ```css
.votebutton.btn.btn-orange

#

try using that

#

color is used for the star colors

novel slate
#

ok, i´ll try. I think i had a class more, maybe that caused it not to work

rustic nova
#

background for the, background

novel slate
#

Yeah it works, thanks a lot

lethal trout
#

hellooooooooo?

#

can someone help me out

novel slate
rustic nova
novel slate
#

Just change the numbers in your if-clauses

rustic nova
#

replace your css selector with this

.votebutton.btn.btn-orange[href="#reviews"] 
#

it should only target the reviews button then

sweet ravine
#

Niceee

sweet ravine
#

how can i change the stars and the server?

earnest phoenix
#

open inspect element

#

find the classes

#

override said classes in your style tag

#

selecting the .star class as a child should work

#
.votebutton.btn.btn-orange[href="#reviews"] > .star

try it i havent tested it

solemn leaf
#

dont spooon feed

#

css is the second easeist lang in the world

sudden geyser
#

You can learn from seeing an example on how it's done.

#

And I wouldn't say CSS is the easiest language.

solemn leaf
#

I didnt

#

I said second

#

html is

rose warren
#

These are facts. If you can learn to make a bot, you can learn to customise your top.gg page 😂

earnest phoenix
#

imagine wanting to have your bot on top.gg

sudden geyser
#

still wouldn't say it's the second easiest but hey, that's my opinion ¯_(ツ)_/¯

#

also I don't like customizing bot pages. that's just more work to maintain if top.gg ever changes their (bad) web page look

sweet ravine
#

How can i change the color from the server button

vale garden
#

hi i have a really weird problem

#
id = bot.get_user(<id-here>)
             await id.send(f"{str(cmd.author)}: {message}")
#

i have this

#

but when i use the id of anyone except me and my friend it doesnt work

#

i get this error

#
File "main.py", line 578, in report
    await id.send(f"{str(cmd.author)}: {message}")
AttributeError: 'NoneType' object has no attribute 'send'
#

i know that all the ids are correct

#

we've tested it multiple times but for some reason it only dms us

#

plz help

earnest phoenix
#

I'm sure get_user returns a promise

vale garden
#

ok what else do i use then

#

@earnest phoenix

#

it works for me and my friend tho for some reason

sweet ravine
earnest phoenix
#

@vale garden resolve the promise?

#

await

#

no, get_user returns discord.User if found, otherwise None

vale garden
#

yea the thing is the user exists

#

the id works

#

and if i do <@id> it pings the user

#

also

vale garden
rustic nova
earnest phoenix
#

of course you can't await NoneType

vale garden
#

yea but it isnt nonetype

#

its a valid id

rustic nova
#

also, which server button, i might be able to tell you the css selector

earnest phoenix
vale garden
#

wdym

#

which return val

earnest phoenix
#

is your bot has mutual server

vale garden
#

yea

#

with the user whos id im putting in right?

earnest phoenix
#

probably not cached

#

try fetch_user

#

it's coroutine btw

#

before that, make sure you're passing int, not str

vale garden
#

ye its int

earnest phoenix
#

how can i change the color for navbar (topbar) in bot page

rustic nova
#

css

rustic nova
#

use inspect element

earnest phoenix
#

ok

#

i'm a good programer coding with html and JavaScript

sweet ravine
#

How can i change the color from the server

earnest phoenix
#

but i'm bad coding with CSS lol

earnest phoenix
#

xd

earnest phoenix
#

the background color is 00000

rustic nova
earnest phoenix
#

change it with color that u want to input

#

how?

#

or visit that web, it works too.

#

i mean how to put in the bot description?

#

are u talking about the bot development or your web?

rustic nova
#

@earnest phoenix

earnest phoenix
#

oh idk

novel slate
earnest phoenix
#

who can help me whith my vps pls ?

#

whith?

umbral zealot
#

Start by asking a question, and we'll be able to know if we can help.

earnest phoenix
#

what the hell is whith?

novel slate
#

I think he meant with

delicate shore
#

ERROR
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined

sudden geyser
#

you gave undefined when you should have given a function

earnest phoenix
#

.then may be used after a console.log in discord.js??

#

My music bot play live stream but 5 sec later my automatic disconnect any buddy help for defined what is problem

ionic silo
#

how to add cooldown in a command?

earnest phoenix
#

I know

#

😂

#

i ddin't understand all

#

@delicate shore You should try this

let messageCallback = <client>._events.message;
<client>.off("message", messageCallback);
delete require.cache[require.resolve("path/to/file")];
<client>.on("message", messageCallback);```
delicate shore
#

okk

solemn leaf
#

@boreal iron

#

morning

carmine summit
#

good evening

solemn leaf
#

console.log(...).then({...})

earnest phoenix
#

oh

#

thx

#

is this right?

solemn leaf
#

think

#

looks good

#

also

#

why not ``

earnest phoenix
solemn leaf
#

then its undefined

earnest phoenix
#

You can't use .then() on synchronous functions

solemn leaf
#

oh

#

cool

earnest phoenix
#

Only asynchronous

solemn leaf
#

@earnest phoenix why need then then thou

#

cant you just put the cde after the log?

earnest phoenix
#

mmmm

#

i can't

#

bc i have to get guild defined

molten yarrow
#

if u have autor.tag, than u can probably get guild aswell
where do u use it tho?

solemn leaf
#

let guild

earnest phoenix
#

m

boreal iron
#

@solemn leaf Yes? I'm online now.

solemn leaf
#

gm fakw

#

fake

#

you tld me to remind you

#

¯_(ツ)_/¯

molten yarrow
earnest phoenix
boreal iron
#

@solemn leaf Alright

molten yarrow
boreal iron
#

Send me one example again how you command and args should look like, please

earnest phoenix
#

oh thx

solemn leaf
#
To send an announcement:
 announce #Channel t:Text d:Text
T stands for Title of an embed.
D stands for Description of an embed.
boreal iron
#

ok, arugments t: and d:

mint charm
#

aut"h"or

boreal iron
#

Finding the right channel in DJS stuff I'm not familiar with

solemn leaf
#

I can sample you my code

boreal iron
#

but the rest is no issue

solemn leaf
#

give me one qt

boreal iron
#

give me one qt

#

wut? one sec...?

solemn leaf
#

wait for discord t open oon my pc

earnest phoenix
#

wut?

boreal iron
#

alright

solemn leaf
#

and im logged ut

#

give mre time

earnest phoenix
#

that orthography

#

lol

solemn leaf
#

my O key is sticky give a breack

#
const Discord = require("discord.js");

module.exports.run = async (bot, message, args, embedconf, whitelist) => {

    if (!whitelist.users.includes(message.author.id)) return message.channel.send("You aren't whitelisted to announce! If you feel you should be message japolino#3199");

    const Embed = new Discord.MessageEmbed()
        .setColor(embedconf.color)
        .setTitle("Announce Help")
        .setAuthor(embedconf.author.text, embedconf.author.image)
        .setDescription("\`\`\`To send an announcement:\n announce #Channel t:Text d:Text\nT stands for Title of an embed.\nD stands for Description of an embed.\`\`\`")
        .setFooter(message.member.displayName, message.author.displayAvatarURL({ dynamic: true }));

    if (args[0] === "help") return message.channel.send(Embed)

    let content = message.content.trim().split(" ").slice(1);
    let title = null, announcement = null;

    for (let i = 0; i < content.length; i++) {
        if (!content[i].includes(":")) continue;

        let item = content[i].split(":");

        if (item[1] === undefined || item[2]) continue;

        let param = item[0].toLowerCase();

        if (param == "t") title = item[1];
        else if (param == "d") announcement = item[1];
    }

    if (title === null) return message.reply("no title given");
    if (announcement === null) return message.reply("no description given");

    let channel = message.mentions.channels.first();

    const embed = new Discord.MessageEmbed()
        .setColor(embedconf.color)
        .setTitle(title)
        .setAuthor(embedconf.author.text, embedconf.author.image)
        .setDescription(announcement)
        .setFooter(message.member.displayName, message.author.displayAvatarURL({ dynamic: true }));

    channel.send(embed).then(
        message.reply("I sent your announcement in <#" + channel + ">")
    )
}

module.exports.help = {
    name: "announce"
}
#

@boreal iron

boreal iron
#

k

earnest phoenix
#

xd

eternal osprey
#

hey

#

how would i access the weather variable?

solemn leaf
#

webscrabing

eternal osprey
#

yeah

#

i know

#

i am already accessing the website'info.

#

[{"cell_id":"9926600982282633216","weather":"5"},{"cell_id":"9926594385212866560","weather":"5"},{"cell_id":"9926570195957055488","weather":"5"},{"cell_id":"9926647161770999808","weather":"4"},{"cell_id":"9926572394980311040","weather":"5"},{"cell_id":"9926598783259377664","weather":"5"},{"cell_id":"9926768108050055168","weather":"5"},{"cell_id":"9926765909026799616","weather":"5"},{"cell_id":"9926977015259332608","weather":"5"},{"cell_id":"9926609778375655424","weather":"5"},{"cell_id":"9926607579352399872","weather":"4"},{"cell_id":"9926603181305888768","weather":"5"},{"cell_id":"9926763710003544064","weather":"5"},{"cell_id":"9926605380329144320","weather":"4"},{"cell_id":"9926585589119844352","weather":"5"},{"cell_id":"9926596584236122112","weather":"5"},{"cell_id":"9926583390096588800","weather":"5"},{"cell_id":"9926633967631466496","weather":"4"},{"cell_id":"9926651559817510912","weather":"4"},{"cell_id":"9926581191073333248","weather":"5"},{"cell_id":"9926578992050077696","weather":"5"},{"cell_id":"9926554802794266624","weather":"4"},{"cell_id":"9927001204515143680","weather":"5"},{"cell_id":"9926649360794255360","weather":"4"},{"cell_id":"9926611977398910976","weather":"5"},{"cell_id":"9926592186189611008","weather":"5"},{"cell_id":"9926631768608210944","weather":"4"},{"cell_id":"9926618574468677632","weather":"2"},{"cell_id":"9926576793026822144","weather":"5"},{"cell_id":"9926644962747744256","weather":"4"},{"cell_id":"9926761510980288512","weather":"2"}],"meta":{"time":1606143939}}

solemn leaf
#

.match?

eternal osprey
#

but how in godsname would i transform the weather (the number) into a real weather name

solemn leaf
#

like the number as 992.....

#

make a json that is like {"9926761510980288512":"WEATHERTYPE/NAME"} then .match

#

or find

#

somethng like that?

#

o`r just ifs

eternal osprey
#

i don't even know where cell ids stand for in thiss site,

#

let me have a better look

molten yarrow
solemn leaf
#

great

#

its switches

#

{"cell_id":"9926644962747744256","weather":"4"} = CLoudy

#

that shouldnt be hard

#

so

#

json.weather === 4

#

idk

#

something like that

eternal osprey
#

huh so the variable i am trying to acces is called weatherString?

solemn leaf
#

i guess?

eternal osprey
#

nope did not work

hollow sedge
#

You can call variables whatever you want

proper bolt
#

just make a json with the weather numbers and text

#
{1:"weather name"}
#

or whatever

eternal osprey
#

i know

proper bolt
#

then you can .map

eternal osprey
#

but i am getting all this info from a website

proper bolt
#

yes

hollow sedge
#

Yeah imo a dict structure would be better

earnest phoenix
#

Where is bot liste?

proper bolt
#

jsonFromApi.map(j => {...jsonFromApi, weather: whateveryourjsonis[j.weather]})

solemn leaf
#

@boreal iron hows it going

boreal iron
#

uhh what

solemn leaf
#

CH_typing FakE is typing...

boreal iron
#

darn... yeah forgot to press enter

#
module.exports.run = async (bot, message, args, embedconf, whitelist) =>
{
    if(!whitelist.users.includes(message.author.id)) return message.channel.send("You aren't whitelisted to announce! If you feel you should be message japolino#3199");
    
    if(args[0] == "help")
    {
        const Embed = new Discord.MessageEmbed()
        .setColor(embedconf.color)
        .setTitle("Announce Help")
        .setAuthor(embedconf.author.text, embedconf.author.image)
        .setDescription("\`\`\`To send an announcement:\n announce #Channel t:Text d:Text\nT stands for Title of an embed.\nD stands for Description of an embed.\`\`\`")
        .setFooter(message.member.displayName, message.author.displayAvatarURL({ dynamic: true }));
        
        return message.channel.send(Embed);
    }
    
    let content = message.content.trim().split("t:");
    
    if(content[1] === undefined) return message.reply("Title missing");
    
    let params = content[1].trim().split("d:");
    
    if(params[1] === undefined) return message.reply("Description missing");
    
    let title = params[0].trim();
    let desc = params[1];
    let channel = message.mentions.channels.first();
    
    const embed = new Discord.MessageEmbed()
    .setColor(embedconf.color)
    .setTitle(title)
    .setAuthor(embedconf.author.text, embedconf.author.image)
    .setDescription(desc)
    .setFooter(message.member.displayName, message.author.displayAvatarURL({ dynamic: true }));

    channel.send(embed).then(message.reply("I sent your announcement in <#" + channel + ">"));
}
solemn leaf
#

what lol

boreal iron
#

should be "understandable" what I did

#

and how u can adjust it

slate oyster
#

This is what I call code that I do not wish to write
It's more complex, the logic, than the previous version I had

solemn leaf
#

I am

#

looking rn

eternal osprey
#

okay so i get it

#

but how do i ever know what weather 5 eactually is?

#

is it snowy?

#

cloudy?

boreal iron
#

well I can't test, but there's no reason to test it KEKW

#

anyways

solemn leaf
#

yes there is lol

#

ctrl shift f

eternal osprey
#

omg i am stupid

solemn leaf
#

so wait @boreal iron

boreal iron
solemn leaf
#

if I did t:HEEE EEE EE d: would stop it right?

boreal iron
#

of course, since d: is empty

solemn leaf
#

okay I prob can do the rest from here thans

boreal iron
#

The title as well as the description can be as long as embeds allows

solemn leaf
#

stupid o and k keys sticky af

boreal iron
#

It's btw. way less code than before, you should have told me that earlier title and desc could be a whole text

solemn leaf
#

I thought you would have guessed that

#

idk

boreal iron
#

well I was driving

#

not so easy to read anything and follow the context

solemn leaf
#

yeah ik

#

you did god

#

almost as good as voltrex

boreal iron
#

didn't see him a while

solemn leaf
#

dam I failed my bad time

#

I got really far lol

safe creek
#

Is discloud good for hosting when your starting as an bot developer?

boreal iron
sterile fiber
#

hey i needed help with friskytool

solemn leaf
#

I havent checked I was doing soemthing

sterile fiber
#

hello

ivory seal
#

which voice event do i use to calcualte how long a person has been in a vc?

safe creek
#

and what are you using to develop your bot

ivory seal
#

discord.js

#

node.js

safe creek
#

read the docs cant help sry

#

using discord py

agile lance
#

Just use the event when somebody joins a vc, set a database value as the current timestamp, and when they leave, save that to a 2nd db and have it compare them

ivory seal
#

kk

#

thats the voiceState Update event righ

agile lance
#

I believe so

#

I haven’t use d.js lately do

#

so*

solemn leaf
#

@boreal iron I mean it doesnt work not in order

#

it has to be title then desc now

boreal iron
#

Yes as your help says

#

Did you tell me it has to be dynamic?

solemn leaf
#

no lol its fine

#

but wont it be a problem if I add like 2 more

#

and the user uses only 3

boreal iron
#

Well that would require to split params[1] again, then the next argument and so on

#

Same schema

solemn leaf
#

ok

boreal iron
#

It's required to keep the order because you can't split by spaces (since title and desc can have multiple words in it) and you can't split by : because somebody could use the char in the title or desc

solemn leaf
#

okay so i was gonna add feild

earnest phoenix
#

I have a reddit command that sends about 5 responses in one time.
Is it considered API abuse? Will it get my bot denied?

boreal iron
#

command a:abc b:def c:ghi d:jkl

split(a:) - [0] = command, [1] = abc b:def c:ghi d:jkl
[1].split(b:) - [0] = abc , [1] = def c:ghi d:jkl
[1].split(c:) - [0] = def , [1] = ghi d:jkl

etc.

umbral zealot
solemn leaf
#

thanks

earnest phoenix
remote vessel
#

so evie
how can i make the bot pic on top.gg
float
or make it circle?

boreal iron
#

use css border-radius

umbral zealot
#

Using css, but beyond that, I can't answer 😄

remote vessel
#

but

#

there isnt a option

#

in the website to edit

#

image

#

i got this website

#

from ur staff

solemn leaf
#

@boreal iron my json broken idk

umbral zealot
#

It goes in the actual detailed description, just like it says at the top.

remote vessel
#

@solemn leaf ur what broke?

remote vessel
solemn leaf
#

TypeError: Cannot read property 'text' of undefined

.setAuthor(embedconf.author.text, embedconf.author.image)
{
    "color": "#36393F",
    "author": {
        "text": "text",
        "image": "image.png"
    }
}
quartz kindle
#

show how you define embedconf

solemn leaf
#

same way yesterday

quartz kindle
#

@remote vessel right click the picture and go to inspect element

remote vessel
#

ohk

#

yeah nice idea

#

smart huh

solemn leaf
#

imma reset my ping comand give sec

boreal iron
quartz kindle
boreal iron
#

#bot-img div { border-radius: 200px !important; -moz-border-radius: 200px !important; -webkit-border-radius: 200px !important; }

remote vessel
#

OwO

#

thnx