#(Niklas) Denizen x Discord

54 messages · Page 1 of 1 (latest)

foggy robin
#

I want to make a script with which you can pay ingame money (all farmable not for real money) and getting a discord message. is this possible?

eager thornBOT
#

(Niklas) Denizen x Discord

eager thornBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

steep compass
#

!g denizen and discord

craggy mossBOT
steep compass
#

if you have any questions about implementation, feel free to let us know here. Otherwise,

zealous cobaltBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@foggy robin

foggy robin
#

where do i get ddenizen

#

ah got it

zealous cobaltBOT
#
Resolved

Thread closed as resolved.

foggy robin
#

okok

zealous cobaltBOT
#
Thread Reopened

Thread was manually reopened by @foggy robin.

foggy robin
#

i got the bot on my dc

#

but its offline 😦

#

i have the after start event

#
discord_start:
  type: world
  debug: false
  events:
    after server start:
    - ~discordconnect id:roaring20s token:<secret[mytoken]>
    - ~discordmessage id:roaring20s channel:1397841981291626527 "Bot started!"```
#

i have of course changed the mytoken to the secret token give by the bot 🙂

#

logs

#

Error Message: Tag 'secret' requires input of type 'SecretTag' but received input 'x'.

how do i do this?

#

ahh okok

#

i need to put it in the secrets file

#

my bot settings

#

as you can see it is on 😦

foggy robin
#

okokok i have fixed this too 🙂

Thanks to chatgpt

#

but now i want to add roles via denizen to a user

#

What i wanna do:

Get the id of a user in discord via a command like:

/mcconnect name

then it should save the players id so that i can send a message to him 😦
Or add roles to a user.

cyan lynx
#

!t discordgrouptag.member

craggy mossBOT
# cyan lynx !t discordgrouptag.member

Returns the group member that best matches the input name, or null if there's no match.
For input of username#id, will always only match for the exact user.
For input of only the username, return value might be unexpected if multiple members have the same username
(this happens more often than you might expect - many users accidentally join new Discord groups from the
web on a temporary web account, then rejoin on a local client with their 'real' account).

Required Plugins or Platforms

dDiscordBot

Returns

DiscordUserTag

cyan lynx
craggy mossBOT
cyan lynx
#

!c discord

craggy mossBOT
# cyan lynx !c discord
Required Plugins or Platforms

dDiscordBot

Group

external

Syntax

discord [id:<id>] [disconnect/add_role/start_typing/remove_role/status (status:<status>) (activity:<activity>)/rename] (<value>) (message_id:<id>) (channel:<channel>) (user:<user>) (group:<group>) (role:<role>) (url:<url>)

Short Description

Interacts with Discord.

Description

Interacts with Discord.

Commands may fail if the bot does not have permission within the Discord group to perform them.

When setting the status of the Discord bot, the status argument can be: ONLINE, DND, IDLE, or INVISIBLE,
and the activity argument can be: PLAYING, STREAMING, LISTENING, or WATCHING.
Streaming activity requires a 'url:' input.

The command should always be ~waited for. See !language ~waitable.

foggy robin
#

yea yea i got these tags. but how do i combine this in minecraft and discord:

You click a block in minecraft then you get a dm on discord 😦

#

or a role

cyan lynx
#

Depends how you want to implement it.
How you want to have the player connect their discord account with their minecraft account

foggy robin
#

either a minecraft or a discord command

cyan lynx
#

Well the best thing should be is to make such a command (can be done either way) or both if you want to make sure they own both the accounts.
Then flag the player with the discordusertag and flag the discorduser with the playertag.

Then whenever the player ingame does something that needs to use their discord account you can geab their linked account tag through the flag

foggy robin
#

uhm ok

#

but how do i do that

cyan lynx
#

How new are you with denizen?

foggy robin
#

not new in denizen but new in discorddenizen

#

i know how to connect and send a message in a defined channel

#

but thats it xD

cyan lynx
#

Most info out there is in the guide and within the meta documents.
I suggest looking through the meta docs more.

With the discordmessage command you can also send messages to specific users with their discordusertag.

You can also create slash command with discord to make the linking accounts thing easier. And all discord objects are flaggable like discordusertag discordgrouptag etc

foggy robin
#

ouf

#

i think i will have to hire someone for doing this

steep compass
#

I have an old example at #showcase message if you want to use that as a base

barren dockBOT