Jump to content

Start Error

Pending 1.2.3

devnull
devnull

Posted (edited)

Hi, the Bot is showing up in Discord, but hangs with an Error till disconnect.

Node output:

=== Drxps Rust Maps Poll Bot ===
Thank you for your purchase! Bot has started and is online now.
If you need any support, visit our Discord: https://discord.gg/GG2Vdvkhvg
Made by Drxp. Enjoy the bot!
Registering guild commands for RUSTIVAL - PVE|PVP|Events.
(node:4284) DeprecationWarning: The ready event has been renamed to clientReady to distinguish it from the gateway READY event and will only emit under that name in v15. Please use clientReady instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2 commands registered to guild: RUSTIVAL - PVE|PVP|Events
(node:4284) Warning: Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.
Error: Invalid duration unit. Use m (minutes), h (hours), or d (days).
    at calculatePollEndTime (C:\RustMaps\commands\poll.js:383:19)
    at Object.execute (C:\RustMaps\commands\poll.js:84:29)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.execute (C:\RustMaps\events\interactionCreate.js:15:17)
  
  Error processing map IDs: CombinedError (2)
  Received one or more errors

  1 ValidationError > s.nullish()
  |   Expected undefined or null
  |
  |   Received:
  |   | ''

  2 ExpectedConstraintError > s.string().url()
  |   Invalid URL
  |
  |   Expected: expected to match a URL
  |
  |   Received:
  |   | ''

    at _UnionValidator.handle (C:\RustMaps\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:1965:23)
    at _UnionValidator.parse (C:\RustMaps\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:972:90)
    at EmbedBuilder.setURL (C:\RustMaps\node_modules\@discordjs\builders\dist\index.js:389:18)
    at Object.execute (C:\RustMaps\commands\poll.js:129:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.execute (C:\RustMaps\events\interactionCreate.js:15:17)

 
Bot config.json:

{
  "token": "MY_TOKEN",
  "guildId": "MY_GID",
  "clientId": "",
  "websiteUrl": "",

  "poll_channel_id": "MY_CHANNELID",

  "e_img_Title": "Server Map Polls!",
  "e_img_Description": "Vote for the map you want!",

  "rustmapsapi_key": "MY_RUSTAPIKEY",

  "extraEntryFeature": {
    "_note_from_dev (READ)": "This feature allows you to give certain roles, such as VIPs, additional voting power during polls. When enabled, users with the specified roles will have their votes count as two instead of one. You can add the role IDs in the 'roleIds' array, and users with any of these roles will receive the extra vote benefit. Set 'enabled' to true to activate the feature.",
    "enabled": false,
    "roleIds": ["ROLE_ID", "ROLE_ID"]
  },

  "_poll_channel_info": "The poll_channel_id is used as the default channel for polls when no specific channel is specified in the /poll command. Users can now specify a different channel using the 'channel' option in the /poll command."
}


Any ideas?
Regards 

votefail.png

Edited by devnull
more detailed
devnull

Posted

Hm, ok. 

Change Line 36 in index.js in 

client.once("clientReady", async () => {

There are more Errors but idk how relevant they are. It works for me.

Drxp

Posted

Hey, can you show me how you are sending the command? As im not getting any errors on my end.

`/poll ids:961b796ba64b4a4b9ef945c0a23a0acf,3850_1205857869 duration:1h` should look something like this.

  • Like 1
devnull

Posted (edited)

Yep, the command wasn't the problem. But i forgot to insert the 

"clientId": "",

And with the little change above the Bot works fine now.

If the Mapvote fail i will inform you the next days. ✌️

botworksfine.png

Edited by devnull
2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

137.3k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.