/space_Invaders

A discord bot thet lets you play Space invaders.

Primary LanguagePython

SPACE INVADERS

A discord bot thet lets you play Space Invaders.

This is my first discord bot... so please give any suggestions to improve it :]

Commands this bot has

$help - Shows you a list of all commands.

$hello - A friendly hello from the bot!

$play - Starts a SPACE INVADERS game.

$stop - Stops the current SPACE INVADERS game.

$jump - Jumps to the message of current game

$lboard, $leaderboard, $lboards or $leaderboards - Shows the current leaderboards

$refresh - To refresh and empty the current leaderboards (owner only command, add your id in owner_id attribute in line 232 to enable it)

Self hosting instructions

Download the code.

Create a Discord Bot Application at https://discord.com/developers/applications/, Make sure to enable ALL intents on this page.

Copy the bot's token, open the main.py file with any text editor you like, scroll to the bottom and then you'll find "bot.run("TOKEN", reconnect=True)"

Replace TOKEN with the token that you just copied.

On the Discord Bot's Portal, go to OAuth2 -> URL Generator and select bot, Administrator and then open the Generated Url to add the bot to your server.

Now download Python at https://www.python.org/downloads. Make sure to add it to path when installing.

Now that we've installed Python and added it to the path. Open Command Prompt and run "pip install discord.py".

After discord.py is installed, run "pip install tabulate" and finally run the code!
It should make the bot online.

Other than self host, you can also host it on any server if you want.

If something goes wrong make sure to contact me!