#DiSky Bot Not Online

1 messages · Page 1 of 1 (latest)

proud silo
#

I just set up a bot with DiSky, following the instructions in the docs word by word. But for some reason, the bot wont get online?

define new bot named "Cloud9 Bot":
    token: "TOKEN"

    intents: default intents

    policy: all
    auto reconnect: true
    compression: none

on message receive:
    reply with "idk if you pinged me or not, but if you did: fuck you"```
robust coral
proud silo
#

yea

#

all of them

#

i had this error before i enabled them

#

and no errors after

robust coral
proud silo
#

ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

#

no

#

DX

robust coral
#

That’s why…

proud silo
#

it just said to reload the script

#

idk

robust coral
#

I’d recommend restarting server

proud silo
#

ima do that rq

robust coral
#

Sometimes reloading a script doesn’t always work lol

proud silo
#

works, but works too well

robust coral
#

Because the bot is replying to itself

#

Causing an infinite loop

proud silo
#

hold on

robust coral
#

add the following check to your on message receive:
event-user is not a bot

proud silo
#

just did that lol

robust coral
#

Alright it should only reply every time you type in any channel it has access to

proud silo
#

ok

robust coral
#

It’s probably just lagging because of discord’s rate limiting

proud silo
#

do i need to restart the server every time i wanna fix something in the script?

robust coral
#

No

#

If you want to stop the bot from the infinite loop it might be in because of rate limiting, then yes

proud silo
#
on message receive:
    if event-user isn't a bot:
        reply with "test"``` i changed it and it still loops
#

it says test, so it recognizes that the script changed, so idk

robust coral
#

oh my bad:
if event-user isn't a discord bot:

#

I forgot disky is picky like that sometimes

proud silo
#

ah

robust coral
proud silo
#

yep

#

how can i make it send emojis

#

doing ":slight_smile:" dont work

#

but like custom server emojis

robust coral
#

I’m just gonna suggest it for the future, you will get much more quicker disky support in their support server

proud silo
#

ok

#

actually nvm i dont need that

#

but when it says it replies with "bblah", i want it to actually reply to the message

robust coral
#

I don’t think bots can do that

proud silo
#

oh

proud silo
robust coral
#

not regular discord commands.

proud silo
#

Oh