Skip to content

Discord bot simulating political factions where members vote and implement server policies. Built with Discord.js/TypeScript using modular commands. Basic structure with plans for full political simulation features.

Notifications You must be signed in to change notification settings

probsJustin/discord_democracy_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Political Party Bot

A Discord bot that simulates political factions and voting for control of a Discord server, with certain features being restricted or available based on faction control.

Overview

This bot creates a simulated political environment within your Discord server where users can:

  • Join different political factions/parties
  • Vote in elections for server control
  • Access (or be restricted from) certain features based on ruling party policies
  • Participate in debates and policy-making decisions

Features

  • Faction System: Create and join political parties with unique platforms
  • Voting Mechanism: Hold regular elections for server control
  • Policy Implementation: Winning factions can implement policies affecting server features
  • Role Management: Automatic assignment of roles based on faction membership
  • Command System: Intuitive slash commands for all bot interactions

Installation

  1. Clone the repository:

    git clone https://github.com/probsJustin/discord_democracy_bot.git
    cd discord_democracy_bot
  2. Install dependencies:

    npm install
  3. Set up your .env file:

    discord_token=YOUR_DISCORD_BOT_TOKEN
    
  4. Start the bot:

    npm start

Usage

The bot uses Discord's slash commands. Here are some examples:

  • /hello - Basic greeting command (currently implemented)
  • /join-party [party-name] - Join a political faction
  • /vote [candidate] - Cast your vote in an election
  • /create-policy [details] - Propose a new server policy

Development

This bot is built with:

  • Discord.js - Discord API library
  • TypeScript - For strongly typed JavaScript
  • Node.js - Runtime environment

The project structure follows a modular pattern:

  • src/bot.ts - Main bot initialization
  • src/command.ts - Command interface definition
  • src/commands.ts - Command registration
  • src/commands/ - Individual command implementations
  • src/listeners/ - Event listeners for Discord events

Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature-name
  3. Make your changes
  4. Submit a pull request

License

This project is licensed under the ISC License - see the LICENSE file for details.

Resources

Contact

For issues and feature requests, please use the GitHub issue tracker.

About

Discord bot simulating political factions where members vote and implement server policies. Built with Discord.js/TypeScript using modular commands. Basic structure with plans for full political simulation features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published