#development

1 messages ยท Page 384 of 1

abstract crystal
#

unlucky m8

nimble merlin
#

agreed

abstract crystal
#

you'll have to do it anyway soon

nimble merlin
#

if it was 100 lines or so it'd be fine

#

eventually yes

ruby dust
#

just try to find a free time to rewrite your code, just like danny rewrote the lib

earnest phoenix
#

i converted 1000 lines of memecode to rewrite

#

would only take you 1.5h tops

nimble merlin
#

oh well

unique star
#

Its a better practice to start early, ngl. Considering you will add more and more and then it will be more and more to convert

abstract crystal
#

if you are using PyCharm just use refractor and you are done in 10 min

nimble merlin
#

I just don't have the time nor the optimism to migrate rn

#

i'm using VSCode

abstract crystal
#

(PyCharm CE is free)

#

lul

earnest phoenix
#

you can use that async2rewrite meme

#

idk if it even works tho

nimble merlin
#

hmmm

#

I'll look into it

abstract crystal
#

lul

nimble merlin
#

I shouldn't really cos its sooooo late for me rn (past midngiht) but I will

#

ooooo

#

i'll take that then lol ๐Ÿ˜‚

abstract crystal
#

just do ```python

TODO: Migrate to rewrite ffs

nimble merlin
#

yea

earnest phoenix
#

good meme

nimble merlin
#

lol

jovial violet
#

I kind of know HTML and I was able to change the color of some text on my bot's page

#

But I'm confused as to how to edit this

inner jewel
#

css

jovial violet
#

I mean yeah, but how would I edit a body that isn't a part of the long description?

#

The title and description were in a <span class> so they were easier to edit

#

This seems like it's just a body

hushed oyster
#

๐Ÿค”

#
    color: white;
}```?
uncut slate
#

.

shy verge
#

is it possible to directly call curl within c#

#

because curl is easier than HttpClient

earnest phoenix
#

how is httpclient harder than curl

shy verge
#

eh

#

you can put auth directly into a curl request

#

and that's nice

earnest phoenix
#

i mean you can do the same with httpclient too

uncut slate
#

that doesn't sound like a very good idea

fierce slate
#

how can i rename the default help command?

low rivet
#

what lib

fierce slate
#

python

trim plinth
#

@fierce slate like alternatives to the name help?

low rivet
#

rename to what

fierce slate
#

testhelp or something

low rivet
#
@bot.command()
async def name(ctx):
  await  ctx.invoke(bot.get_command('help')) 
fierce slate
#

i want to make my own but keep the old for testing reasons

low rivet
#

ohh

#

oh

#

uh

#

just copy the original help's source and use that as a command

fierce slate
#

ok

bleak sapphire
#

ahhhh fk

#

can anyone tell me why
@bot.commands.has_role('Admin') doesnt work anymore

it just gives me this message in my console

C:\Users\Matt GT>"C:\Users\Matt GT\Desktop\Discord Server\big nibba bot\bn.py"
Traceback (most recent call last):
  File "C:\Users\Matt GT\Desktop\Discord Server\big nibba bot\bn.py", line 245, in <module>
    @commands.has_role('Admin')
AttributeError: 'Command' object has no attribute 'has'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x056D0BB0>
#

it used to work before

brisk notch
#

who know php?

low rivet
#

@bleak sapphire theres a commnd callrd commands right?

bleak sapphire
#

oh yeah

#

nvm imma just change that command to commandlist

#

tnx for reminding me though

#

great it works now

idle mountain
#

I'm sure this is off-topic and really simple but what CSS would I need to change the "Invite [bot] by clicking the invite button" and "Created by:" texts?

#

I can't figure this out for the life of me, for some reason

uncut slate
#

a little complicated, I think you'd have to hide the existing one and make a pseudoelement with the desired content

idle mountain
#

augh! That's what stackoverflow was suggesting and i didn't wanna do that cuz it messes everything up :c

#

alright well thanks for the answer! bingYay

earnest phoenix
#

The id and webhook

low rivet
#

huh what do u mean

earnest phoenix
#

How can I get ID and token of a webhook?

earnest phoenix
#

how do i make a broadcast command

low rivet
#

youd have to create a webserver

solemn yoke
#
    name: 'ping',
    description: 'Ping!',
    execute(message, args) {
        message.channel.send('Pong');
    },
};``` If i want to change the ping command to like respond with a react and then prune the message itself. how should i do it?
earnest phoenix
#

@low rivet Nope
Discord webhook!

low rivet
#

huh create the webhook then

#

like literally go. to server settings and click create

earnest phoenix
#

...

#

Ik

#

I mean how to get wbhook's id and token

#

open dat link

#

actualy dat link brings u to it

steel tinsel
#
client.on("message", (message) => {
  var guild = require('./guildsettings.json');
  
  if(message.author.bot) return;
  
  var guildid = message.guild.id;
  
  
  if(guild[guildid].badwords.some(word => message.content.includes(word)) ) {
//some code...```
#

  if(guild[guildid].badwords.some(word => message.content.includes(word)) ) {

                    ^

TypeError: Cannot read property 'badwords' of undefined

at Client.client.on (/app/server.js:136:21)

    at Client.emit (events.js:180:13)

    at MessageCreateHandler.handle (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)

    at WebSocketPacketManager.handle (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)

    at WebSocketConnection.onPacket (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)

    at WebSocketConnection.onMessage (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)

    at WebSocket.onMessage (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/ws/4.1.0/node_modules/ws/lib/event-target.js:120:16)

    at WebSocket.emit (events.js:180:13)

    at Receiver._receiver.onmessage (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/ws/4.1.0/node_modules/ws/lib/websocket.js:137:47)

    at Receiver.dataMessage (/rbd/pnpm-volume/768faaa2-1c53-4031-b548-770885ea090a/node_modules/.registry.npmjs.org/ws/4.1.0/node_modules/ws/lib/receiver.js:409:14)```
#

please help me my platform keeps autorestarting the thing and this is no good

quiet bobcat
#

guild[guildid] isn't defined

steel tinsel
#

how

#

it worked fine

quiet bobcat
#

ยฏ_(ใƒ„)_/ยฏ

#

then what did you do to it?

steel tinsel
#

yesterday i added a little thing and then everything broke

#

no idea

quiet bobcat
#

what little thing?

steel tinsel
#

the last case in the switch

#

i don't know how that broke my code

#

my guildsettings.json

#
{
  "314116801975943198": {
    
    "modroles": ["Admin"],
    
    "exemptroles": ["CGS"],
    
    "mutedrole": "Muted",
    
    "badwords": ["some", "stuff"],
    
    "modlogchannel": "422650349900398602"
  },
 
  
}```
quiet bobcat
#

I'm using fs to read json files, try that.

#

Otherwise idk what's wrong

steel tinsel
#

exactly

#

it worked fine before

#

yesterday i added the last command and BAM!

austere meadow
#

i can't remember if it makes a difference but try removing the trailing comma in your json file

steel tinsel
#

no

#

there are more after that

#

just a copying error

austere meadow
#

ah

steel tinsel
#

whole file

earnest phoenix
#

oh. . .

#

isnt ** badwords** a array?

steel tinsel
#

yes

austere meadow
#

how do you add guilds to your file

#

because it seems like you're trying to reference an index that doesn't exist

#

hence why its returning undefined

steel tinsel
#

๐Ÿค”

austere meadow
#

that guild probably doesn't exist in your file

languid dragon
#

how are you trying to access the json object

#

show code

#

nvm

earnest phoenix
#

fs lol

languid dragon
#
if(guild[guildid].badwords.includes(word)) {
trim plinth
#

How do you fetch the joinedAt of a user? I can't find a way to get it or I'm just really dumb thonkku

#

also its discord.js

solemn yoke
#

dont worry im more hahaha

#

im still trying to figure out reactions properly

austere meadow
#

@trim plinth get the <Member> object and you can just <Member>.joinedAt which returns the date they joined

#

you can use message.member.joinedAt if you want the message authors join date

trim plinth
austere meadow
#

๐Ÿ‘

tardy hatch
#

Anyone have a cleverbot code?

trim plinth
#

Like a cleverbot API key or cleverbot code?

#

@tardy hatch

tardy hatch
#

Idk =)) a code if: TagBot and a message

#

And that response

trim plinth
#

which language and which library are you using

tardy hatch
#

Java

trim plinth
#

and JDA I'm guessing?

tardy hatch
#

Jdk

#

:))

trim plinth
#

JDA is the library for Java that lets you make bots..

#

Not a JDK

tardy hatch
#

Wait 2sec

#

Yeah, JDA

#

You have a code?

trim plinth
#

no

tardy hatch
#

๐Ÿ˜ฆ

low rivet
#

get it yourself?

steel tinsel
#

hey, i need some help understanding a structure with discord.js (mainly normal js)

#

i have an array where i'm supposed to add objects in it

#
[ { '110373943822540800': 

     { modroles: [Array],

       exemptroles: [Array],

       mutedrole: 'Muted',

       badwords: [Array],

       modlogchannel: '0' } } ]```
#

if i do console.log with the array, it results this

#

i want to call the object that's inside the array. how do i do it?

languid dragon
#

object[0]['110373943822540800']

steel tinsel
#

oh ok

#

thanks

#

but what if i have multiple objects inside?

languid dragon
#

object[1]['110373943822540800']

steel tinsel
#

will try

#

is there a dynamic way to do it? i don't want to add bloated code

#

or either remove the outer object?

languid dragon
#
for (let index = 0; index < object.length; index++){
    console.log(object[index])
}
steel tinsel
#

ok

languid dragon
#

you know you could just use a map

#
let name = new Map();

name.set('index', {some: [object], with: 'values'})

name.get('index')

name.map((object)=>{
    console.log(object) // logs every object inside "name"
})
steel tinsel
#

hm?

#

i don't want to log every object

languid dragon
#

im using it as an example facepalm

steel tinsel
#

ok

languid dragon
#
let guilds = new Map();

guilds.set(message.guild.id, {some: [object], with: 'values'})

guilds.get(message.guild.id) // returns {some: [object], with: 'values'}

steel tinsel
#

whatever i found a better way

#

thanks

languid dragon
#

oh sure no problem

#

google it next time

steel tinsel
#
"110373943822540800": {
  "modroles": ["Moonlight", "MoonlightBot", "Mod"],
    
    "exemptroles": ["Moonlight"],
    
    "mutedrole": "Muted",
    
    "badwords": ["uiiuehieriveibvieubiehiuiruhihuviuvbvfuubvurubvuruvbruburvurhshshgerbe"],
    
    "modlogchannel": "0"
  }
#

this throws SyntaxError: Unexpected token : in JSON at position 23

#

does it need to be an outer object

inner jewel
#

yes

#
{
    "valid_json": true
}``` ```json
[
    "valid_json"
]``` ```json
"valid_json": false```
steel tinsel
#

hm

#

then i can't really solve my issue

languid dragon
#

are you using a .json as a database

steel tinsel
#

kinda?

inner jewel
#

don't save data in json files

steel tinsel
#

i have no other way

inner jewel
#

use a proper database

languid dragon
#

mongoDB

#

rethinkdb

#

there's a few options

#

if you want the easy route

#

go RethinkDB

steel tinsel
#

i can't use a database

inner jewel
#

proper database, not rethink

#

rethink is just bad code

languid dragon
#

why can't you use a database?

inner jewel
languid dragon
#

well MongoDB is good

steel tinsel
languid dragon
#

lmfao

inner jewel
#

afaik mongo shards are poorly implemented and corrupt data

languid dragon
#

u could probably run rethink in the same process

inner jewel
#

not sure how well single shard works

languid dragon
#

natan stop complicating it

#

he's noob

inner jewel
#

better to know the issues before you start using it and run into them ยฏ_(ใƒ„)_/ยฏ

languid dragon
#

well of course but, that's something we can help with at a later date

steel tinsel
#

SyntaxError: Unexpected token : in JSON at position 24

#
[

"110373943822540800": {
  "modroles": ["Moonlight", "MoonlightBot", "Mod"],
    
    "exemptroles": ["Moonlight"],
    
    "mutedrole": "Muted",
    
    "badwords": ["uiiuehieriveibvieubiehiuiruhihuviuvbvfuubvurubvuruvbruburvurhshshgerbe"],
    
    "modlogchannel": "0"
  }
]```
#

in my json.parse i added a [0] after the function

languid dragon
#

because that's not how arrays work

#

i told you the only solutions to what you're trying to do

#

change [] to {}

steel tinsel
#

ok

languid dragon
#

it'll work the same as an array but ya

steel tinsel
#

hm?

#
var guildid = message.guild.id;
  
  if(!guild.includes(guildid)) {
    
    guild.push(JSON.parse(fs.readFileSync("./guilds/"+guildid+".json", "utf8"))[0]);
  }
  
  if(guild[guildid] !== undefined) {
  if(guild[guildid].badwords.some(word => message.content.includes(word)) ) {
console.log('hello world');
}
earnest phoenix
#

You need to add some masternodes

languid dragon
#

if you're making multiple json files

steel tinsel
#

yes?

languid dragon
#

why are you putting the id in the object

steel tinsel
#

idk either

languid dragon
#

that's the point if the id is in .json

#

you're literally making it more complicated than it needs to be

steel tinsel
#

facepalm

#

removed the ids

#

then?

#

the code doesn't do anyhing but not throws out an error either

languid dragon
#

i think you should

#

google

#

how JSON objects work

earnest phoenix
#

memes

steel tinsel
#

but um

trim plinth
#

but what

steel tinsel
#
{

  "modroles": ["Moonlight", "MoonlightBot", "Mod"],
    
    "exemptroles": ["Moonlight"],
    
    "mutedrole": "Muted",
    
    "badwords": ["maor", "ninja"],
    
    "modlogchannel": "424569071758082059"
  
}```
#

this is the json

trim plinth
#

ok so

steel tinsel
#

a second

languid dragon
#
let guild = require('/guilds/' + message.guild.id + '.json')
guild.modroles[0] // "Moodlight"
guild.modlogchannel // "424569071758082059"
steel tinsel
#

but what if i need multiple guilds in that array?

#

that's the point

#

i'm making a cache

#

ok whatever i'll overload the server (?)

tidal grove
#

help

#

how to make this type of bot

#

and how is tht yellow lines come in msage

#

in python

steel tinsel
#

it's an embed

tidal grove
#

how

frail kestrel
#

That's an embed

#

whats ur lib

tidal grove
#

send me the code

#

pls

frail kestrel
#

no

#

no sp00nfeed

languid dragon
#

we're not here to spoonfeed new people

tidal grove
#

..

frail kestrel
#

yes ken

tidal grove
#

k

languid dragon
#

you learn to code and code yourself

tidal grove
#

๐Ÿ˜…

#

OK teach me

inner jewel
#
  1. choose lang
  2. learn lang
  3. choose lib for that lang
  4. learn lib for that lang
  5. make bot
#

google can help you with 3 of those steps

earnest phoenix
#

@bitter sundial can i ask some thing

frail kestrel
#

no

#

don't ask to ask

#

also there's not just Tonk

earnest phoenix
#

but i want to know how to get my bot online

frail kestrel
#

what lang/runtime

earnest phoenix
#

ok

frail kestrel
#

ok is ur lang?

#

sorry i don't speak fluent ok

earnest phoenix
#

i dont see runtime

frail kestrel
#

.

#

what are you writing your bot in

earnest phoenix
#

THE FUTURE BOT

frail kestrel
#

thats... not a language

quiet bobcat
#

๐Ÿค”

frail kestrel
#

holy fuck these people

#

my patience is -1000000 rn

earnest phoenix
#

that's my bot name THE FUTURE BOT

quiet bobcat
#

Cool cool

frail kestrel
#

I asked what language you were using

quiet bobcat
#

but what are you writing it in

frail kestrel
#

yes

quiet bobcat
#

javascript, java, python ect

earnest phoenix
#

jda

frail kestrel
#

I think with java you do

quiet bobcat
#

ok java

frail kestrel
#

not fluent in java

#

hold on

quiet bobcat
#

I'm not either

frail kestrel
steel tinsel
#

and um, why didn't this write the file?

client.on('guildCreate', (guild) => {
  
  var defaultsettings = {
    
    "modroles": [],
    
    "exemptroles": [],
    
    "mutedrole": "Muted",
    
    "badwords": [],
    
    "modlogchannel": "0"
    
  };
  
  fs.writeFile('guilds/'+guild.id+'.json', JSON.stringify(defaultsettings), function (error) {
  if (error) throw error;
  console.log('Joined a new guild!');
}); 
  
  
});```
#

console says nothing but the guild joined message

frail kestrel
#

well

steel tinsel
#

yes?

earnest phoenix
#

i changed it to javacord

muted oxide
#

just testing

earnest phoenix
#

Ew why Json thou

#

error

#

i changed it to javacord

steel tinsel
#

ok but my code doesn't work

#

no error either

quiet bobcat
#

You're doing something wrong when you're writing that file

steel tinsel
#

what exactly?

quiet bobcat
#

hold on

earnest phoenix
#

also fs takes a while to write files

steel tinsel
#

oh

quiet bobcat
#

uh try to not make the error a function?

#

remove that part

#

and then add =>

#

after the (error) thing

steel tinsel
#

fs.writeFile('guilds/'+guild.id+'.json', JSON.stringify(defaultsettings), function (error) => {?

quiet bobcat
#

remove function

steel tinsel
#

says unexpected token =>

quiet bobcat
#

Remove function

#

๐Ÿ‘€

steel tinsel
#

done

quiet bobcat
#

try it now

steel tinsel
#

npe

quiet bobcat
#

any errors?

#

try console.error instead of throw

steel tinsel
#

no but it logs the joined message

#

wait console.error is a method?

quiet bobcat
#

Uh pretty sure

steel tinsel
#

ok

#

no errors whatsoever

quiet bobcat
#

๐Ÿค”

#

and it's not writing the file

#

idk then

#

Sorry

steel tinsel
#

"a while" how much?

quiet bobcat
#

?

#

oh

earnest phoenix
#

i dont count lol @steel tinsel

topaz fjord
#

@steel tinsel why do you want it to throw an error

#

It'll only throw an error if something is wrong

tardy hatch
#

Hello there

#

Anyone can help me with that?

#

Bot join on Voice for 20s and leave..

#

And don t sing

ruby dust
#

don't you have discord on pc?

tardy hatch
#

No

#

My pc is from potato

#

But putty work on it

ruby dust
#

well it'd be better for everyone if you'd be able to print screen instead of taking a photo from a phone

tardy hatch
#

:))

#

Is an error with Connection

#

Socket_connection

#

Wait 2sec

#

Wait to open discord

inner jewel
#

change guild region

#

discord fucked up voice servers

tardy hatch
#
[main] INFO net.dv8tion.jda.core.JDA - Login Successful!
[JDA MainWS-ReadThread] INFO net.dv8tion.jda.core.requests.WebSocketClient - Connected to WebSocket
[JDA MainWS-ReadThread] INFO net.dv8tion.jda.core.JDA - Finished Loading!
[JDA MainWS-ReadThread] INFO net.dv8tion.jda.core.managers.AudioManager - Audio System successfully setup!
[JDA AudioWS-ConnectThread (guildId: 417755353967493120)] WARN net.dv8tion.jda.core.audio.AudioWebSocket - Failed to establish websocket connection: SOCKET_CONNECT_ERROR - Failed to connect to 'eu-central490.discord.gg:443': Connection timed out (Connection timed out)
Closing connection and attempting to reconnect.
[JDA AudioWS-ConnectThread (guildId: 417755353967493120)] WARN net.dv8tion.jda.core.audio.AudioWebSocket - Failed to establish websocket connection: SOCKET_CONNECT_ERROR - Failed to connect to 'eu-central490.discord.gg:443': Connection timed out (Connection timed out)
Closing connection and attempting to reconnect.```
#

=))

#

Ping: 96ms | Websocket: 103ms

#

Very nice....

earnest phoenix
#

it is a decent ping

solemn obsidian
#

Just interested, what databases do your bots use and why?

hushed oyster
#

I use SQLite because I'm too lazy to switch to PostgreSQL

inner jewel
#

redis

#

because it was easy

hushed oyster
#

isn't redis stored in memory

inner jewel
#

yes

hushed oyster
#

well that isn't very reliable

solemn obsidian
#

And for long term?

hushed oyster
#

just saying

inner jewel
#

but it can persist to disk

hushed oyster
#

oh

#

nvm

heady zinc
#

i use rethink cuz natan is yelling about how shit it is ZoomEyes

solemn obsidian
#

I dont know if redis is really suitable for storing of a lot of data for long term

inner jewel
#

never had issues

solemn obsidian
#

What do you store in it?

inner jewel
#

all my data

#

prefixes, experience, etc

elder rapids
#

You realize Mee6 originally used redis as a database

#

Nothing else

solemn obsidian
#

what does it use now

abstract mango
#

probably something around sql

quasi marsh
#

I use redis as well

abstract mango
#

I use /dev/null (aka no db)

#

don't need it yet mmLol

topaz fjord
#

Mysql

#

For now

#

Until I change to mongodb

idle grail
#

[gl]

nimble merlin
#

Hey, how do I make a command DM the user that is mentioned in the command???

ruby dust
#

I already don't like where this is going...

#

idk how it would be for async, but here's the rewrite version as a referece

async def dm(ctx, member: discord.Member, *, message):
    await member.send(message)
#

there might be more to that what you need it to do, but this is very basic

nimble merlin
#

ok, thanks ๐Ÿ˜ƒ

west current
#

@rain tulip

  if(!message.guild.me.hasPermission("EMBED_LINKS")) return;
#

Works like it's supposed to

#

But ```js
if(!message.guild.me.hasPermission("SEND_MESSAGES")) return;

rain tulip
#

Do

#

has()

#

hasPermission is deprecated in 1.12

#

I think

gilded blaze
#

no it isn't

rain tulip
#

1.13

#

Idk

west current
#

I don't even think I'm in 1.12

#

How to check version again?

gilded blaze
#

still not

#

not deprecated in either

rain tulip
#

Hm thatโ€™s dumb

west current
#

Soooo..

rain tulip
gilded blaze
#

it should work. you're doing something wrong

rain tulip
#

Or not

gilded blaze
#

lol you said hasPermission not hasPermissions

rain tulip
#

Nvm Iโ€™m dumb

earnest phoenix
#

use eris

rain tulip
#

Btw solace is that under 13 thing a joke

earnest phoenix
#

yes and no

rain tulip
#

Elaborate?

gilded blaze
#

why u a selfbot @rain tulip

rain tulip
#

Pshhh I like that status

earnest phoenix
#

ooo

west current
#

Ooo

#

Ban

earnest phoenix
#

Alright well you have to turn it off

rain tulip
#

Lol

earnest phoenix
#

Please

nimble merlin
rain tulip
#

Ok when I get home

west current
#

You can get banned

#

For real

earnest phoenix
#

I wont ban, just take care of that pls

nimble merlin
#

the ban hammer has spoken lol

rain tulip
#

Sure

#

Lol

west current
#

Discord Ban is possible sir

rain tulip
#

I mean

earnest phoenix
#

Yeah on top of a DBL ban

nimble merlin
#

yes

rain tulip
#

Shit oof

earnest phoenix
#

Yeah, we banned a selfbotter yesterday

rain tulip
#

Ok I canโ€™t get rid of it rn

earnest phoenix
#

ik

nimble merlin
#

lol ๐Ÿ˜„

hushed oyster
#

stop the selfbot

earnest phoenix
#

I'll give you time to get it off

rain tulip
#

I will as soon as possible

earnest phoenix
#

dw

west current
#

Anyways @rain tulip, I don't know how that'll help my problem

rain tulip
#

I legit gave you docs

west current
#

Yea I know

#

Went over them

nimble merlin
#

Does anyone have any advice that they can give on how to create economy commands in discord.py async????

west current
#

Don't see anything wrong with my code, but it still doesn't work

rain tulip
#

Hm

earnest phoenix
#

wdym economy commands

#

Are you already inserting points/xp data into a db?

nimble merlin
#

no

rain tulip
#

Remove the permission part and try

west current
#

The fuck

#

@rain tulip Here's what I'm trying to do

earnest phoenix
#

Welp, try getting points and XP working first

rain tulip
#

Just want to see what happens

earnest phoenix
#

and ways to measure it

nimble merlin
#

ok

earnest phoenix
#

Then make ways to just give and take

west current
#

If a Discord bot has no perms, it should just send nothing instead of sending it console

gilded blaze
#

well it does that so you know

earnest phoenix
#

It's a simple concept the process is just dependent on the lang/db you're using

#

With Python it shouldn't be hard

rain tulip
#

I mean did you not give the bot perms

west current
#

Yea I know

runic hedge
#

ive got a little bit of code for my bot but idk how to upload it to discord so if my pc goes off the bot will still work

west current
#

That's the point

rain tulip
#

Heroku or glitch

#

Kbye

west current
#

In a different server, the bot perms might be 0, so it won't be able to talk, but I don't want it sending the error to console.

hushed oyster
#

he said on his pc

#

so

west current
#

I just want it to send nothing

rain tulip
#

Go check anidiots.guide

hushed oyster
#

not every bot is on heroku or glitch

rain tulip
west current
#

What's anidiots.guide

hushed oyster
#

a website

rain tulip
#

Good for beginners

gilded blaze
#

You can't keep a bot running on your pc and turn it off

earnest phoenix
#

a d.js tutorial server

west current
#

Alright

hushed oyster
#

server?

earnest phoenix
#

They support d.js users beginner to advanced

#

Yes they have a support guild

hushed oyster
#

true

#

but anidiots.guide is the website

west current
#

Alright, the Discord.js Official server isn't helpful that much

earnest phoenix
#

d.js server is a meme

rain tulip
#

I couldnโ€™t agree more

earnest phoenix
#

A server dedicated to ur lib is a big meeeeem

rain tulip
#

Eris doesnโ€™t even have support

#

Lil

#

Lol

earnest phoenix
#

Yes it does

#

It just doesnt take up an entire server bc its not a meme

rain tulip
#

I shit wot

#

LOL

earnest phoenix
#

it's dapi channel is the support channel

#

and that's enough bc people who use Eris generally arent the people watching tutorial videos

rain tulip
#

Hm

earnest phoenix
#

like d.js

rain tulip
#

Lolol

#

Anyway

#

Ok Iโ€™ve arrived

west current
#

I don't watch tutorial videos but alright

warm halo
#

can i have a simple config?

#

moderation

west current
#

Yes

earnest phoenix
#

Im not saying all d.js users do

warm halo
#

wheree

#

i need

earnest phoenix
#

Im just saying that a large amount do

warm halo
#

for my server

west current
#

That's pretty sad

earnest phoenix
#

far bigger ratio than on Eris

west current
#

But I still like D.Js

warm halo
#

owh moderator

earnest phoenix
#

yeah

west current
#

Normally, I don't ask for help

earnest phoenix
#

d.js isnt a bad lib

west current
#

But for this, I need it

warm halo
#

just check my bot

earnest phoenix
#

it's just easier

west current
#

I asked 5+ people already, no good help

#

And they were ALL good bot developers

warm halo
#

im adds my bot

west current
#

@rain tulip Also,

#

hasPermission wasn't deprecated, hasPermissions was

rain tulip
#

is it off

#

^

#

did you not read

warm halo
#

donate config plsss

west current
#

No

warm halo
#

plss

rain tulip
#

wtf

#

why not updating

west current
#

@warm halo What are you talking about

#

The fuck

warm halo
#

for my server

west current
#

What for your server

warm halo
#

i need simple moderation config

west current
#

Make one

#

In a .json

warm halo
#

just kick, ban, warn, mute

west current
#

What?

#

Commands or a config?

hushed oyster
#

Dyno may help you

warm halo
#

i neeedd tahttt!!

west current
#

Yea

rain tulip
#

wtf

hushed oyster
#

btw json is trash

warm halo
#

no

west current
#

@spice willow

#

@hushed oyster Not using for a DB, read only

warm halo
#

i want to create my own bot with simple moderation command

hushed oyster
warm halo
#

pls

hushed oyster
#

ohhhhh

#

well

warm halo
#

i need the config

hushed oyster
#

first

west current
#

WHAT'S THE CONFIG

#

WHAT CONFIG

hushed oyster
#

he's talking about code

#

ok

warm halo
#

code

#

i need

rain tulip
#

@earnest phoenix Should be updated ๐Ÿ‘

west current
#

mmmm

hushed oyster
#

ok so

#

first

rain tulip
#

omg pls spoonfeed

hushed oyster
#

you need to learn a language

warm halo
#

warn mute kick and ban

hushed oyster
#

then learn a lib

west current
#

Make it

warm halo
#

just already

earnest phoenix
#

@warm halo Nobody is going to code a bot command for you

warm halo
#

still approval

earnest phoenix
#

Just use a bot that's listed

#

like @cinder stream

west current
#

-bots @warm halo

gilded plankBOT
#
ForceStop Gaming#4120
Bots

@sullen dagger

hushed oyster
#

he's asking for us to code the entire bot

warm halo
#

yeah

hushed oyster
#

we won't

west current
#

@sullen dagger

hushed oyster
#

or something

west current
#

If you can't code, don't make a bot

warm halo
#

can

west current
#

Don't ask us for code, please.

warm halo
#

but

earnest phoenix
#

Or use Discord Bot Maker

west current
#

aNo

warm halo
#

i need better

west current
#

No

warm halo
#

owh

west current
#

No DBM

hushed oyster
#

Dyno is good

warm halo
#

dbm is pay

earnest phoenix
#

Discord Bot Maker is good for people who cant code

hushed oyster
rain tulip
#

u can pay me 100$ for a bot @warm halo

earnest phoenix
#

Yes, you pay for it

west current
#

DBM is shit

warm halo
#

lol

earnest phoenix
#

It's good for those that cant code tho

warm halo
#

yeah

#

in steam

earnest phoenix
#

its shit for people who can

west current
#

I got a good deal, @warm halo, $50 for a perfect bot

warm halo
#

but

#

im

rain tulip
#

how about 420$

warm halo
#

๐Ÿ˜ฆ

hushed oyster
#

check DMs

warm halo
#

poor

hushed oyster
#

ok

rain tulip
#

even better

west current
#

Multiple commands, custom config and shit like that

earnest phoenix
#

I charge $50 a month for a bot that can do anything you want

west current
#

@earnest phoenix Hack into the US Gov

earnest phoenix
#

same

west current
#

Make me a bot for that, I'll pay you

rain tulip
#

@west current

let can = message.channel.permissionsFor(message.member).has("permission");
if (!can) return;
earnest phoenix
#

best bot

rain tulip
#

no scam

#

lol

warm halo
#

no scam

rain tulip
#

yoooooo mel is now a mod gg

earnest phoenix
#

yes for a third time

warm halo
#

๐Ÿ˜ฆ

#

anybody???

#

have a one codee??

hushed oyster
#

LOOK AT YOUR DMS

west current
#

@rain tulip Shit, that works

hushed oyster
#

I HAVE BEEN TRYING TO HELP YOU

west current
#

Thanks fam

earnest phoenix
hushed oyster
#

thank you

rain tulip
#

yeah

#

np

west current
#

I can see how that'll work

#

My mind too retarded to make something like that

rain tulip
#

lol august is so mad

hushed oyster
#

I think he just wants his own bot because he thinks it'll get famous and he'll get rich and famous

west current
#

Yes

hushed oyster
#

He is refusing to use great bots that work very well

west current
#

You're mad

#

Mhm

#

I tried to help him, he said he needs a CONFIG

earnest phoenix
#

lmao

west current
#

But then asked for kick, ban, mute and something else

#

Those are commands

#

AND he didn't say what Lib

#

A config can't be a command

rain tulip
#

sooo

#

btw

#
let guilds = "";
        client.guilds.forEach( guild => {
            guilds += guild.name + "\n";
        });
        message.channel.send(guilds);

get all guildnames

west current
#
client.guilds.map(g=>g.name).join('\n')```
#

Better way to do it

rain tulip
#

ooooo

#

smart

west current
#

ยฏ_(ใƒ„)_/ยฏ

rain tulip
#

๐Ÿ‘

earnest phoenix
#

make it a json file instead

#

then make it send a json

west current
#

SmartER

earnest phoenix
#

example there

topaz fjord
#

gg

nimble merlin
#

How do I set my bot's presence to show that it is streaming???? (i'm in async)

nimble merlin
#

hello?

tardy hatch
#

Hello!

#

How can i say as my bot?

ruby dust
#

what

tardy hatch
#

I want to say as my bot

#

Example:

ruby dust
tardy hatch
#

Yeah

elder rapids
#

omg overused embeds aaaaaaaaa

tardy hatch
#

But without command?

#

Its possible?

ruby dust
#

everything is possible, but I'm afraid I don't want to help with something that will turn out to be spammy

tardy hatch
#

Okay

nimble merlin
#

Hello, how can I change my bot's presence from "watching" to "streaming"????

ruby dust
#

use a game type

nimble merlin
#

I have tried

ruby dust
#

I think 1 is for streaming

nimble merlin
#

I'll try it...but last time I checked that was playing

#

same a 0

ruby dust
#

also you have to provide a link to a valid twitch channel

nimble merlin
#

ohhhh ok

#

how do I do that?

#

well, what is the code for it?

elder rapids
#

...?

nimble merlin
#

is it url='...'

elder rapids
#

We don't give code zoomeyes

ruby dust
#

as you know, the only way to have a streaming status for users is to actually streaming on twitch, so that's the only way even for bots

nimble merlin
#

ok

elder rapids
#

You don't have to actually be streaming

nimble merlin
#

so do I just set the type and add url=

ruby dust
#

it's in the docs somewhere

nimble merlin
#

ok

inner jewel
#

just have "https://twitch.tv/ " (with the space) as the url

#

ez

nimble merlin
#

oh ok

ruby dust
#

oh I didn't know a space can be used as well

nimble merlin
#

await bot.change_presence(game=discord.Game(type=1, url='https://twitch.tv/ ', name="{} Servers! | T.commands".format(len(bot.servers)))) That just shows a playing status

#

or have I made a mistake somewhere?

earnest phoenix
#

@nimble merlin different number types is different status types

#

1 is playing

nimble merlin
#

ik

#

what is streaming though????

earnest phoenix
#

let me find out

nimble merlin
#

ok

#

Never mind I have done it

#

I just had to move url=... outside of the second set of parenthesis

earnest phoenix
#

yea

#

i was gonna say

nimble merlin
#

lol

earnest phoenix
#

do u know how to unban with user id?

#

ยฏ_(ใƒ„)_/ยฏ

nimble merlin
#

not the user id....sorry

earnest phoenix
#

oof

nimble merlin
#

I don't use id's in my mod commands, I use a mention of them

earnest phoenix
#

maybe i can ask tom

nimble merlin
#

as long as the bot and user executing the command has the permissions then it works....but I don't have an unban command

#

yea

nimble merlin
#

How would I set up commands that manage roles....e.g addrole, mutedrole etc etc?

abstract crystal
#

make a command with a user mention as parameter then just look at your library docs for how to add roles and perms, but first check if bot has required permissions to do that

nimble merlin
#

ok

topaz fjord
#

You should try looking at docs for whatever lib ur using to see how to do it

nimble merlin
#

ok

#

ty

steel tinsel
#
client.on('guildCreate', (guild) => {
  
  var defaultsettings = {
    
    "modroles": [],
    
    "exemptroles": [],
    
    "mutedrole": "Muted",
    
    "badwords": [],
    
    "modlogchannel": "0"
    
  };
  
  
  const {promisify} = require('util')
const writeFileAsync = promisify(require('fs').writeFile)


writeFileAsync('./guilds/'+guild.id+'.json', JSON.stringify(defaultsettings)).then(console.log).catch(console.error);
  
  
});```
#

why doesn't this work?

topaz fjord
#

What's the error

steel tinsel
#

no error

topaz fjord
#

Then that's good?

steel tinsel
#

just doesn't do anything

#

it should write a file

uncut slate
#

don't use json as a database

steel tinsel
#

can't do otherwise

abstract crystal
#

can't do is not an answer

uncut slate
#

why can't you do otherwise

steel tinsel
#

because the platform i use doesn't allow me create databases

uncut slate
#

what's the platform you use

steel tinsel
abstract crystal
#

if you mean mysql or postgresql yes

#

what about sqlite

uncut slate
#

if you can use fs to write the file, you can use a smaller embedded database like sqlite, leveldb or nedb

abstract crystal
#

that should be available

steel tinsel
#

i don't think

uncut slate
#

if you can use fs to write files in json, you can use sqlite and nedb

steel tinsel
#

but um, can we focus on my code not working instead of finding json alternatives?

#

the code is pretty crucial

abstract crystal
uncut slate
#

@steel tinsel no one is going to bother to help you with json because it's a horrible practice that's unnecessarily complicated

steel tinsel
#

oh so i?

#

is that thing safe from sql injections?

uncut slate
#

sqlite3 with prepared statements is sanitized, yes

#

safe from SQL injection

steel tinsel
#

๐Ÿค”

#

any sqlite guide?

frail harness
#

I use yml as a database

#

which is probably equally terrible

uncut slate
#

yep

frail harness
#

wait, but why is it terrible?

uncut slate
#

in the case of js, fs is prone to segfaulting when writing large content, or making minor fuckups leading to JSON corruption

#

if you're using yml you're probably not using js

frail harness
#

Yeah

#

I'm using Python's PyYaml

uncut slate
#

even then, storing your database in a file like that is unnecessarily complicated, slow, etc

#

list goes on

#

I mean, it's doable, but just.. why..

frail harness
#

Because I'm too lazy to learn SQLite.

uncut slate
#

sqlite isn't the only database

#

there's databases out there that you seriously don't "learn", that's how simple they are

frail harness
#

like...?

uncut slate
#

wouldn't know about py, but leveldb and nedb are incredibly simple, embedded and still somewhat performant

#

py probably has a port of level, not sure

frail harness
#

I'll check them out ig

#

Also, about this:

steel tinsel
#
let db = new sqlite3.Database(':memory:', (err) => {
  if (err) {
    return console.error(err.message);
  }
  console.log('Connected to the in-memory SQlite database.');
});```
#

jays sqlite3 is not defined

#

but i did run npm install sqlite3

frail harness
#

require('sqlite3')?

steel tinsel
#

i think i should use json for now

#

can someone tell me what's wrong witht the code i posted before?

#

please

#

it's night here

rose mesa
#

Hmm...

steel tinsel
#

thamks

rose mesa
#

Wc ^^

earnest phoenix
#

does anyone know how to add reactions to a user message in discord.py rewrite?

#

my description:

<head>
<style>
 /* always hide the checkbox */
.css-toggle-switch { display: none; }

/* update label text to reflect state 
.css-toggle-switch         + label:before { content: "Hide "; }
.css-toggle-switch:checked + label:before { content: "Show "; }

  conditionally hide content when checked */
.css-toggle-switch:checked ~ .css-toggle-content  { display: none; }

/* make the label look clickable */
.css-toggle-switch + label {
   cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.my-button {
    display: inline-block;
    margin: 5px;
    background: #4c9cff;
    color: #3060ff;
    font-size: 1.5em;
    font-family: โ€˜Open Sansโ€™;
    border-radius: 10px;
    padding: 8px 16px;
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.my-button:hover {
    background: #843dff;
    color: #308bff;


}
</style>
</head>
<p align="center">
<img src="https://preview.ibb.co/mOjYnx/4bitpixely.png
" alt="logo" height="150" width="150">
<p align="center">

<a class="my-button" href="https://discordapp.com/oauth2/authorize?client_id=386333909362933772&scope=bot&permissions=-1" target="_blank">Invite</a>
<a class="my-button" class='btn' href="#">
<label for='css-toggle-switch' class='btn'>
Info
</label>
</a>
</p>






<input type='checkbox' id='css-toggle-switch' checked='checked' class='css-toggle-switch'>

<div class='css-toggle-content'>
   <pre><code>More info coming soon yay</code></pre>
</div >
hushed oyster
#

hmm

trim plinth
earnest phoenix
#

i copy pasted a lot online tho ๐Ÿ˜›

hushed oyster
#

most likely invalid code

earnest phoenix
#

it works on jsfiddle

hushed oyster
#

still

trim plinth
#
  1. dont copy and paste 2. probably invalid like kaniel said
hushed oyster
#

dbl may be more strict with the code

earnest phoenix
#

so no css or js :/

hushed oyster
#

css works

uncut slate
#

CSS works

hushed oyster
#

your css is bad

trim plinth
#

js is for cert only

earnest phoenix
#

css doesn't work for me

trim plinth
#

css is for everyone

hushed oyster
#

mat

#

css does work for you

#

the code is wrong

earnest phoenix
#

how is it wrong?

#

it works on there

hushed oyster
#

idk

trim plinth
#

@earnest phoenix css does work, its just invalid code + js only works on certified bots

hushed oyster
#

it has to be invalid code

#

there's no way it isn't

earnest phoenix
#

if its invalid then how does it works on jsfiddle?

#

im not using any js

hushed oyster
#

because jsfiddle is not dbl

earnest phoenix
#

its html tho

hushed oyster
#

ok?

#

doesn't change a thing

earnest phoenix
#

Detailed description of your bot HTML & Markdown allowed

hushed oyster
#

yes

trim plinth
#

just because it works on jsfiddle doesn't mean it will automatically work on dbl, so you probably will have to tweak the code

hushed oyster
#

they are allowed

#

jsfiddle is not dbl

#

ok

earnest phoenix
#

so i guess no toggleable text :/

topaz fjord
#

why are you putting buttons in the head tag

earnest phoenix
#

i got it working by embedding github pages ๐Ÿ˜„

#

wait if i embed coudn't i just put js in that?

topaz fjord
#

@earnest phoenix you cant put js in your desc without cert

uncut slate
#

no, you can'tnvm I can't read

topaz fjord
#

Yes

earnest phoenix
#

I'm embedding.....

hushed oyster
#

i mean

#

that would work

nimble merlin
#

Hey, i'm wondering how I can check for a specific user's id within a command so soemthing like @commands.has_id or something like that

ruby dust
#

you mean, check if the command was ran by a specific user id?

nimble merlin
#

yes

ruby dust
#

hmm, there was a way I did it on my oldest bot

nimble merlin
#

i'm in async btw ๐Ÿ˜‚

ruby dust
#
if ctx.author.id != your_id:
    return
```basically, if the one running command isn't you, it will return
#

but that's rewrite, yeah

nimble merlin
#

hmmmm

#

ermmm

ruby dust
#

do it at the top of the whole command, it should be the first check

nimble merlin
#

OK

ruby dust
#

I'm not really sure, but I remember someone saying that in async the ids need to be strings

#

I found that weird cause on rewrite they can be integers

nimble merlin
#

yea

#

ik

#

it doesn't work but gives no error message what so ever

#
             aliases=['Kill', 'KILL'])
async def kill(ctx):
    if ctx.message.author.id != '269758783557730314':
        embed = discord.Embed(title='Kill Case:', color=0xff0000)    
        embed.add_field(name='Name:', value='{}'.format(ctx.message.author.name), inline=True)
        embed.add_field(name='ID:', value='{}'.format(ctx.message.author.id), inline=True)
        embed.add_field(name='Status:', value='{}'.format(ctx.message.author.status), inline=True)
        embed.add_field(name='Role:', value='{}'.format(ctx.message.author.top_role), inline=True)
        embed.set_thumbnail(url=ctx.message.author.avatar_url)
        await bot.send_message(discord.Object(id='423890604645285888'), embed=embed)
        await bot.logout()
    return``` here's the code if that helps
ruby dust
nimble merlin
#

what???

ruby dust
#

it checks if the id is not the id you provided

nimble merlin
#

that's kinda the whole point

#

oh

ruby dust
#

so you limited yourself, but not the all other discord users

nimble merlin
#

if I just remove the ! it should work

ruby dust
#

you did the oposite

nimble merlin
#

ok, lol ๐Ÿ˜„

#
    if ctx.message.author.id = '269758783557730314':
                             ^
SyntaxError: invalid syntax``` sigh
#

oh ik the fix

ruby dust
#

== - equality
= - assignment

nimble merlin
#

ohhhh

#

it worked, thanks ๐Ÿ˜ƒ

ruby dust
#

np

nimble merlin
#

Is there an easy way to create a restart command???

low owl
#

Restart as in restart your bot? Really depends on your environment and setup

nimble merlin
#

yea, restart the bot...i'm using discord.py in the async version

low owl
#

Not a python expert, but I reckon something like this should work
os.execl(sys.executable, sys.executable, *sys.argv)

be very careful though, this will create a bunch of subprocesses and your system might run out of memory.

nimble merlin
#

oh ok..erm...my PC is crap so i'm just gonna forget about it if there is a risk to running out of memory

low owl
#

What do you want to do with the command anyway?

#

I mean, what do you expect of it or why do you not just manually restart the bot?

nimble merlin
#

I'd rather not manually restart the bot because it takes longer...that's basically the long and short of it ๐Ÿ˜‚

cinder junco
#

have you considered using heroku

nimble merlin
#

ish....

low owl
#

Would not recommend Heroku for anything serious though

inner jewel
#

just run the bot with a shell script

#

and if exit code == x restart it

low owl
#

the free version actually resets your state after each day (?)

cinder junco
#

umm

#

use postgres

inner jewel
#

you can cheat heroku/glitch

elder rapids
#

postgres is a DB?

inner jewel
#

doing an http request periodically

cinder junco
#

ye

elder rapids
#

wat

low owl
#

lol

elder rapids
#

what does a DB have anything to do with this convo

low owl
#

If you are a student you could try to get Github Student Dev Pack and get ~50$ for free on DigitalOcean

cinder junco
#

mhm

inner jewel
#

50

low owl
#

^ thanks

nimble merlin
#

oh....i'm 13 so i'm not old enough but thanks anyway ๐Ÿ˜‚

cinder junco
#

herokus free plan with a knowledge of how databases work actually makes for a nice bot

inner jewel
elder rapids
#

Get the $5 one

low owl
#

That is very true

inner jewel
#

i have a 4c/4gb/100gb/200mbps unmetered for 6โ‚ฌ

#

at scaleway

low owl
#

Oh that sounds nice, gonna check that out

#

No idea what to do when my free credits run out

earnest phoenix
#
                let request = require('request-promise');
                request({
                    method: 'PATCH',
                    uri: 'https://api.heroku.com/apps/utiliboat/config-vars',
                    body: {
                        args[1]: msg.content.split(" ").slice(3).join(" ")
                    },
                    headers: {
                        'Content-Type': 'application/json',
                        'Authorization': 'Bearer '+this.client.config.heroku.token,
                        'Accept': 'application/vnd.heroku+json; version=3'
                    }
                }).then(function (app) {
                    msg.channel.send('OK');
                }).catch(function (err) {
                    msg.channel.send('ERROR\n'+err);
                })

I'm trying to do a "set config var" command, but when using args[1], the console spills out a SyntaxError: Unexpected token [, any help?

inner jewel
#

they're atom cores, so don't expect too much

topaz fjord
#

when using .emit for the guildban event what are the options i need to give it?

low owl
#

Well, the bot does no complex operations or such a like

#

mostly queries different services or operates a database

inner jewel
#

if it doesn't have music it'll most likely run on any hardware

#

being limited only by memory

low owl
#

Yea, what would I need to do to get the "Bot Developer" role? I guess one receives it automatically when publishing a bot on DBL?

earnest phoenix
#

Yep, that.

#

Publish a bot on DBL.

low owl
#

Aight, thanks

pulsar cairn
#

How do I create a role using JDA

inner jewel
#

GuildController#createRole

pulsar cairn
#

So

event.getGuild().getController().createRole();
inner jewel
#
controller.createRole().setMentionable(true).setName("everyone").complete()```for example
bright spear
#

Im working on a google command, but I noticed that even if I have safesearch on (with &safe=active) you can still make it show NSFW images in the link preview if the site is for example Wikipedia.
However, it does not send if Discord's explicit content filter is on.
Should I just make it <> the link if the explicit content filter isnt on?

#

I gotta sleep, pls ping me with the answer

idle grail
#

WAIT GUYS I NEED HELP

#

HOW TO AUTHORISE MY BOT

#

I HAVE NO IDEA WHAT IT MEANS ;-;

#

I want to use the API

#

someone?

#

;-;

dense brook
#

explain in more detail what the problem is

#

provide screenshots if you are confused

steel tinsel
#

maybe you need the url

#

this might help

dense brook
#

@steel tinsel I like the profile pic

weak parrot
#

So for some reason the background image on my bot page is repeating even though I added code which should not allow it to repeat Thonk

zealous forge
#

you want to link me @weak parrot

weak parrot
#

Don't mind the spaghetti HTML/CSS code btw

zealous forge
#
body {
    background-attachment: fixed;
    background-repeat: no-repeat;
}
#

@weak parrot add this

#

maybe not to body

#

but

#

yeah

#

somewhere

weak parrot
#

I already added background-repeat: no-repeat; but I'll try the other one

zealous forge
#

it wasnt there

#

can you send me the snippet

#

I couldn't find it in inspect

weak parrot
zealous forge
#

yeah

#

but its not in a style

#

you cant add css like that

#

do ```HTML
style="background-repeat: no-repeat;"

weak parrot
#
.content {
background-image: url("https://cdn.discordapp.com/attachments/368412885078114307/397020079381807114/1440.png"); !important;
    height: 100%; 
    background-repeat: no-repeat; !important;
    background-attachment: fixed;
}
<body background="https://cdn.discordapp.com/attachments/368412885078114307/397020079381807114/1440.png" background-repeat:no-repeat; background-size:4096px 2560px; bgproperties="fixed" >
<body background-repeat: no-repeat;>
<body background-attachment: fixed;>

I have always had it like this and it has always worked up until a couple of weeks ago

zealous forge
#

yeah so that .content is fine as a css class but the background-repeat:no-repeat; background-size:4096px 2560px; in the second bit isn't doing anything

weak parrot
#

Like I said Don't mind the spaghetti HTML/CSS code btw xD

zealous forge
#

if you want me to fix it can you just send me the full snippet that you paste into discord bots

weak parrot
#

I don't see how any of the other code would conflict with it though since it's only the background fucking up and not any of the other code

zealous forge
#
<body background="https://cdn.discordapp.com/attachments/368412885078114307/397020079381807114/1440.png" style="background-repeat:no-repeat; background-size:4096px 2560px; background-attachment: fixed;" bgproperties="fixed" >