Skip to content

A tool to help form lobbies for Left 4 Dead 2 within a Discord channel

License

Notifications You must be signed in to change notification settings

edoakes/lfd2-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lfd2-bot

A tool to help form lobbies for Left 4 Dead 2 within Discord channels

Requirements

  • Python 3.8^

Python Modules

  • discord
  • pillow

Eventually I'll get a setup.py configured for all dependencies

Getting Started

  1. Clone the repository to your local machine
  2. Install the required Python modules
  3. Configure a test Discord bot using this tutorial https://discordpy.readthedocs.io/en/latest/discord.html

Step 3 Details

  • Ensure you use a name unique to your user
  • Create a copy of example.config.json as config.json and populate it with the key you get from the tutorial
  • Send a discord admin your bot invite URL
  1. Run the bot DISCORD_TOKEN="<your secret token>" python bot.py
  2. (optional) Change the command prefix in bot.py, e.g. from ? to !

Useful Debug Commands

note: It's highly recommended to add some sort of unique identifier in bot.py to make sure not to kill/reload anyone elses bot

reload - will reload the lobby cog without having to restart the bot. This is incredibly useful but will clear any variables within that cog

disconnect - kills the bot

About

A tool to help form lobbies for Left 4 Dead 2 within a Discord channel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%