Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Discord bot made for Age of Empires 2 discord servers.

License

NotificationsYou must be signed in to change notification settings

makayla-moster/HammerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub ContributorsGitHub top languageGitHub issuesLicense

HammerBot is a discord bot built for an Age of Empire II streamer's discord server. HammerBot features Age of Empires II specific commands, such as!whichciv <techName> which returns a list of civs that get that specific technology in-game.

Specific features include:

  • Team civilization randomizer for 2v2s, 3v3s, and 4v4s that takes into account pocket or flank positions
  • Finding out if a civilization has a specific technology or unit
  • Returning in-gametaunts
  • Player rank and match commands with info pulled from theaoe2.net API
  • And more!

Python Package

HammerBot is built with Discord.py, an API wrapper for Discord.

Other packages/libraries used include:

  • asyncio
  • aiohttp

HammerBot currently has a very simple setup, where all features are split into their own cogs.

Issues & Bugs

If a bug or any unintended behavior is discovered, please report it by creating an issuehere.

HammerBot Development

If you'd like to contribute code to HammerBot, please:

  1. Follow the setup guidelines & fork the repository
  2. Make any contributions in your fork
  3. Create apull request

Your pull request will then be reviewed. Please read theContributing Guidelines before creating your first pull request.

Setting Up HammerBot

Get a Discord Bot Token

  1. Get a Discord bot token by going to theDiscord Developers website (you'll have to login)
  2. Create an Application & clickBot in the left sidebar
  3. Create a bot - the name you put will be seen in the servers
  4. Copy the token from this page and hold onto it

Prepare your Bot for your Server Connection

  1. ClickOAuth2 from the left sidebar
  2. UnderScopes, checkbot
  3. InBot Permissions selectadministrator underGeneral Permissions
  4. Copy the link from theScopes section and open it in a new tab
  5. Select the server you want to add the bot to

Prepare your Repository

  1. Fork this repository
  2. git clone HammerBot, andcd into theHammerBot directory
  3. Make a new file called.env and fill in the fields based off the.env.example file

Setup & Run your HammerBot

  1. Setup venv withpip3 install virtualenv (mac/linux) orpy -m pip install --user virtualenv (windows)
  2. Then runvirtualenv venv (mac/linux) orpy -m venv venv (windows)
  3. Enter the virtual environment withsource venv/bin/activate (mac/linux) or.\venv\Scripts\activate (windows)
  4. Then let pip get the latest libraries withpip3 install -r requirements.txt (mac/linux) orpy -m pip install -r requirements (windows)
  5. Then test run your HammerBot withpython3 -m hammerbot.py (mac/linux) orpy -m hammerbot.py (windows) in the main directory
  6. The bot should show up in your server and respond to commands such as11

About

A Discord bot made for Age of Empires 2 discord servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp