Public
NexusEconomy Discord bot — economy system with slash commands
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A full-featured economy bot for your Discord server, using the n! prefix.
| Command | Description |
|---|---|
n!bal [@user] | Check your or someone's balance |
n!daily | Claim daily reward (24h cooldown, streak bonus) |
n!work | Work a random job for coins (1h cooldown) |
n!give @user amount | Transfer coins to another user |
n!dep amount | Move coins from wallet → bank |
n!with amount | Move coins from bank → wallet |
n!lb | Top 10 richest members |
n!help | Show all commands |
The bot polls your Discord server every 15 minutes for new messages (free tier minimum). When it finds messages starting with n!, it processes the command and replies.
Rendering mermaid diagram...
⚠️ Note: Because Val Town's free tier polls every 15 minutes, responses are not instant. Upgrade to Pro for 1-minute polling.
- Go to Discord Developer Portal
- Click New Application → name it NexusEconomy
- Go to the Bot tab → click Reset Token → copy the token
- Enable MESSAGE CONTENT INTENT and SERVER MEMBERS INTENT
- Go to OAuth2 → URL Generator
- Select scopes:
bot - Select permissions:
Send Messages,Read Message History,View Channels - Copy the URL and open it to invite the bot to your server
Add these to the val's environment variables:
DISCORD_BOT_TOKEN— the bot tokenDISCORD_GUILD_ID— your Discord server ID
The bot will start polling automatically. Type n!help in any channel!
- Runtime: Val Town (Deno)
- Database: Val Town SQLite (persistent)
- Polling: Interval val (every 15 min on free tier)
- API: Discord REST API v10