Funny-Nation
Funny-Nation copied to clipboard
This is a money-centric "Metaverse" within a Discord server.
Funny Nation
A money-centric "Meta-verse" Discord Bot
About this Discord bot
Funny Nation is a Discord bot that makes Discord servers into a "metaverse."
People could earn coins and experience points by the activity on Discord channels (either voice or text), and people could exchange coins for tradings.
Also, people could play games via interaction with this bot to earn money (sometimes to lose money).
There are a lot of features and ideas that are still in development. Let me know if you have any cool ideas.
Invite "Hummie" to your Discord server
Hummie
is an official Funny Nation bot that is free for everyone to use.
However, if you want to build your own funny nation bot, please read the instruction below.
Before Deploy your bot
You need to set up a Discord application and get a Discord bot token. If you don't know how to do that, please read the tutorial at this link.
Deploy with Docker
Requirements:
- Docker
- A PostgresSQL database with URL - Example:
postgresql://username:[email protected]:5432/databasename
- A Discord Bot Token
From Docker hub
docker run --name funnynation \
-e DATABASE_URL="postgresql://your-postgres-database-url" \
-e DISCORD_TOKEN="your-discord-token" \
-d plbin97/funny-nation
Or build your own Docker Image
docker build -t funnynation .
docker run --name funnynation \
-e DATABASE_URL="postgresql://your-postgres-database-url" \
-e DISCORD_TOKEN="your-discord-token" \
-d funnynation
Deploy with Nodejs
Requirements:
- An Node environment,
16.x
recommended - A PostgresSQL database with URL - Example:
postgresql://username:[email protected]:5432/databasename
- A Discord Bot Token
Step1: Install dependency
# For development
npm install
# For production
npm install --omit=dev
Step2: Build
npm run build
Step3: Database Migration
# For development
DATABASE_URL="postgresql://your-postgres-database-url" \
npm devmigrate
# For production
DATABASE_URL="postgresql://your-postgres-database-url" \
npm migrate
Step4: Run
DATABASE_URL="postgresql://your-postgres-database-url" \
DISCORD_TOKEN="your-discord-token" \
npm start
Superuser (God)
You can add one more environment variable SUPERUSERID
to claim a super user.
The value of SUPERUSERID
is the user id.
SUPERUSERID
is optional.
SUPERUSERID=123123123
Contact Us
If you have any questions, or you want to join our team.
You can talk to us via this Discord Server.
Also you can send email to [email protected].
Contribution
If you want to contribute to this project, please make sure that you have read:
- Contributing Guidelines
- Developer Guide