Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.
/ total_secrecy Public archive

The Discord adaptation of a popular social manipulation game

Notifications You must be signed in to change notification settings

TurtleCode84/total_secrecy

Repository files navigation

Total Secrecy

The Discord adaptation of a popular social manipulation game.

!! This bot is unfinished and archived, expect bugs and no future updates !!

Commands

All commands are prefixed with /

Game Commands

  • /start: Starts a new round of Total Secrecy.
  • /end: Ends the current game.
  • /join: Joins the current game.
  • /leave: Leaves the current game.
  • /status: Lists who is currently playing.
  • /round: Provides admin information about the current round/game.
  • /task: Returns currently assigned task.
  • /listtasks: Lists all possible tasks.

Environment Variables

  • TOKEN: Your Discord bot token.
  • GUILD_ID: Your server ID.
  • CLIENT_ID: The bot's application ID.
  • MONGODB_URI: A full MongoDB URI pointing to an active database.

Database Setup

Schema

Format is database.collection

data.bots

{
    _id: <objectId>,
    isGame: <boolean>,
    announcementChannel: <channelId>,
    adminRole: <roleId>,
    playerRole: <roleId>,
    server: <serverId>,
    heart: <uuid>
}

data.scores

{
    _id: <objectId>,
    server: <serverId>,
    scores: [
        {
            user: <userId>,
            score: <integer>
        }
    ]
}

data.players

{
    id: <userId>,
    username: <username>,
    task: <taskNumber>,
    failed: <boolean>,
    score: <integer>
}

Additional information

The following Environment Variables have been moved to a database document:

  • ADMIN_ROLE: Your server's admin role ID.
  • PLAYER_ROLE: Your server's player role ID.
  • ANNOUNCEMENT_CHANNEL: The ID of the game announcement channel in your server.

Additional documentation will follow in the coming development cycle.

To Do

  • Add more tasks
  • Implement scoring
  • Modularize
  • Reroll for harder task?
  • Implement time limit

(imported from TrackTask)

About

The Discord adaptation of a popular social manipulation game

Resources

Stars

Watchers

Forks

Releases

No releases published