riptl / discord-influx

Discord ➡️ InfluxDB metrics exporter
MIT License
21 stars 2 forks source link

I need help to set this up #7

Closed pijn-tech closed 4 years ago

pijn-tech commented 4 years ago

How can I update? Try to contact me the sooner. Thanks I hpe someone to help me. What do you mean with "replace guild-name with the persistent name in Influx and..." Where is the "persistent name in Influx"?

riptl commented 4 years ago

@pijn-tech First of all your bot token is still clearly visible in the screenshot, you might want to remove the screenshot so no one steals your token. You can also just copy-paste the command line output directly as text (EDIT: and remove your token).

The error shown in your screenshot means that the API has rejected your request because of insufficient authorization. Verify the following things:

What do you mean with "replace guild-name with the persistent name in Influx and..." Where is the "persistent name in Influx"?

The parameter guild-name is the name that your guild gets in the Influx database. It will also show up in the Grafana drop-down. Just call it guild if you don't know what to specify.

Let me know when you get it to work.

pijn-tech commented 4 years ago

Thankss I will try now Do you have discord? I called princejn#9910

1.Where DISCORD_TOKEN="Bot XXXXXX"? I don't exactly what I need to type.

I try this following options.

export DISCORD_TOKEN='xxxx'; ./discord-influx 'lpxw`/7xxxxx -s 0

export DISCORD_TOKEN='Bot xxxx'; ./discord-influx 'lpxw`/7xxxxx -s 0

export Discord token local storage token or bot token?="Bot name?" "integer 65536?")'; ./discord-influx 'lpxw`/7xxxxx -s 0

I try this like last option.

export Discord token local storage token=Bot name bot token'; ./discord-influx 'lpxw`/7xxxxx -s 0

1

riptl commented 4 years ago

@pijn-tech I don't have Discord at the moment. Let's just go over the steps required:

  1. Set your bot up with permissions integer 65536, in the Discord developers portal.

image

  1. Set your token.

Replace xxx with the token it shows you in the bot tab under "CLIENT SECRET".

export DISCORD_TOKEN='Bot xxxx'
  1. Set up the app the first time. Only run this step once, this will take a while.

Replace 77777777 with the guild ID (for example, 482467812179181568)

./discord-influx LPXW/77777777 -s 0
  1. Then, have it run in the backgoround.
./discord-influx LPXW/77777777