During active events, users only need to send a DM to @POAP-bot
- Obtain the secret password during the event.
- Send a private message (DM) to @POAP-bot containing the secret password.
- @POAP-bot will automatically reply with an unique URL to claim your POAP.
You can add to you discord server the @POAP-bot with this link: https://discord.com/oauth2/authorize?client_id=819190761437528124&scope=bot&permissions=2112
It will open the discord.com site in a browser page. Once the user signs in (which may happen automatically if credentials have been cached), they can select the guild in which the bot is to operate, and approve the bot's permissions in that guild.
The bot will appear as a new member of the server (check for Poap Bot#2760).
Administrators or users with a role called "POAP Master" may issue a command to the bot by mentioning it in a Text Channel, then adding the command in the message.
Using:
!setup
or @POAP-bot-v2 !setup
only inside a Text Channel
Note the bot will respond in a direct message dialog with the requesting user. Depending on the Discord client, the bot's member name may be offered alongside its icon in a selection list when beginning to type the bot's name.
- !setup Will initiate a dialog to set up a POAP event. Use this to create a new event.
Some aspects of a POAP distribution event are customisable, specifically:
- set the #channel to announce the beginning and end of an event
- the messages privately by the bot during the event.
- the start and end times (in UTC +0 time zone, with the following format: 2021-06-29 13:00)
- a file containing POAP codes (Questions? Ask here -> https://t.me/poapxyz)
The bot will offer a default value for each parameter and it will be set if the response to the dialog is "-".
- !status Will respond in a direct message with the information of all configured events by the user.
-
!addcodes {EVENT_ID} The user who created the event could add new codes sending a DM to the bot indicating the event ID (You can find it using the !status command) and attaching a new file with the new POAP codes.
-
!replacecodes {EVENT_ID} In the case of wrong configuration, the user who created the event should replace the codes by sending a DM to the bot indicating the ID as the first parameter and attaching a file with the POAP codes to replace the old ones.
Note: You can find the event ID using the !status command
- !subscribe Administrators may issue this command to the bot by mentioning it in a text channel and will automatically subscribe the channel to the feed in real-time of the claimed Poaps.
- !unsubscribe Administrators may issue this command to the bot by mentioning it in a text channel and will stop sending the embed messages to the channel.
Install dependencies & start:
npm install
npm run debug
Builds will be created on dist
folder.
docker-compose build
docker-compose up -d
- Make sure to create a .env file using all configurations (see .env.sample)