Skip to content

zwk1729/Funny-Nation

 
 

Repository files navigation

Funny Nation

A money-centric "Meta-verse" Discord Bot

Our Discord

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.

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:password@database.url: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:password@database.url: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.

Contribution

If you want to contribute to this project, please make sure that you have read:

About

This is a money-centric "Metaverse" within a Discord server.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 91.0%
  • JavaScript 8.0%
  • Other 1.0%