Skip to content

hollowstrawberry/Pac-Man-Bot

Repository files navigation

Pac-Man Bot for Discord

Discord Bots Discord Bots
Discord Bots Discord Bots
paypal

Play the best chat games for Discord: Pac-Man, Uno, Hangman, Pets and more! Works in a server with friends or in direct messages with the bot.
The objective is to bring the most enterntainment to you and your group, with the least amount of hassle and spam possible.

Features the following games:

  • Uno: Play with up to 10 friends and bots in the classic Uno card game.
  • Hangman: Everyone has to guess the random word, or a word chosen by you!
  • Wakagotchi: Enjoy caring for a pet in a Discord-based tamagotchi clone.
  • ReactionRPG: Battle monsters and become stronger, or challenge your friends to battle - Enjoy this simple chat RPG!
  • Tic-Tac-Toe, Connect Four: Challenge your friends or the bot itself.
  • Code Break: Uncover the secret code in this public puzzle game.
  • Minesweeper: A basic rendition of minesweeper using the spoiler text feature.
  • Rubik's Cube: Attempt to solve a cube in chat form. Seriously.
  • Pac-Man: Turn-based controls in a simplistic yet faithful recreation of the arcade game. The original PacManBot game.

Bot invite link here
Support server here

 

Compiling Pac-Man Bot

Should you want to maintain a custom fork of Pac-Man Bot, here are the main steps.

To be able to compile the bot, you'll need to install the .NET 5.0 SDK here. In Windows, Visual Studio should install it for you.

Before compiling, you need to add the NuGet package of the DSharpPlus library, by first adding the nuget source: https://nuget.emzi0767.com/ . If you're using an IDE like Visual Studio or Rider, you can add it through there. To compile, use the Publish.bat which contains a command such as this one:

dotnet publish PacManBot.csproj --runtime %RUNTIME% --configuration Release

Where %RUNTIME% is the system you'll be building for, like linux-x64 or win-x64. For a Raspberry Pi, use linux-arm.
The command will generate a bin/Release/net5.0/%RUNTIME%/publish/ folder containing the entire program.
The bot can be executed from Pacman.exe/./Pacman or otherwise by running dotnet Pacman.dll. It requires that contents.json and config.json are in the same folder (you can find them in bin/, and the console output will inform you if this is not fulfilled.

Using different emotes

I recommend using my own copies of the emotes in the Pac-Man Bot server, which your bot can join if you ask.
If you instead want to use your own copy of the emotes, here are the steps:

  1. Grab the emote images from the _Resources/Emotes/ folder.
  2. Upload them to a Discord server that your bot has access to.
  3. Obtain all of their codes. You can do this quickly using the bot's 'emotes' developer command.
  4. Modify your src/Constants/CustomEmoji.cs file with all the new codes.
  5. You can then build the bot again and test if the emotes are displaying correctly.

 
 

Alt

About

Play the best chat games for Discord: Pac-Man, Uno, Pets and more! Play alone or with friends, with pretty interfaces and low spam.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages