Run a Fluxer bot on PlayNHost
A Fluxer bot is your own code: a Node.js bot built with fluxer.js, or a Python one. It logs in to Fluxer's gateway with a bot token and answers messages, so it needs a machine that stays on. Our bot plans are that machine. Order a plan, answer What is your bot for? with Another platform, and pick Node.js or Python. Then:
- In Fluxer, open User settings, then Applications under Developer, create an application and copy its bot token. Fluxer shows it once.
- In the panel, open the Bot page, pane Environment, and add a variable named
FLUXER_BOT_TOKENwith the token as its value. Keep this value secret is ticked for you once the name ends in TOKEN; leave it ticked: the value is stored encrypted and never shown again. - Upload your files in Files, or connect a Git repository on the Bot page, pane Code, then press Start.
The server installs your packages from package.json or requirements.txt and starts your bot again if it crashes.
