Skip to content

Reddit bot that retrieves and posts MMA decision scorecards on r/mma.

Notifications You must be signed in to change notification settings

k-time/decision-bot

Repository files navigation

DecisionBot

DecisionBot is a Reddit bot that retrieves and posts mixed martial arts scorecards on-demand. Users summon the bot by commenting in any r/mma thread with the fighters' names. It has been live on r/mma since February 2017.

Usage example

  • User leaves comment: decisionbot mcgregor vs diaz

  • DecisionBot replies:

    UFC 202: Diaz vs. McGregor 2 — August 20, 2016

    ROUND McGregor Diaz McGregor Diaz McGregor Diaz
    1 10 9 10 9 10 9
    2 10 9 10 9 10 9
    3 9 10 9 10 8 10
    4 10 9 10 9 10 9
    5 9 10 9 10 9 10
    TOTAL 48 47 48 47 47 47

    Judges, in order: Derek Cleary, Jeff Mullen, Glenn Trowbridge.

    MEDIA MEMBER SCORES

    • 1/19 people scored it 49-47 McGregor.
    • 12/19 people scored it 48-47 McGregor.
    • 1/19 people scored it 47-46 McGregor.
    • 4/19 people scored it 47-47 DRAW.
    • 1/19 people scored it 47-48 Diaz.

    2215 fan scores1426 (64%) McGregor, 483 (22%) Diaz, 306 (14%) Draw.

Features

  • You can use v / v. / vs / vs. / versus, or leave it out and the bot will figure the names out.
  • Handles rematches (include the rematch number in the comment, or leave it out and the bot posts all fights).
  • Handles many fighter nicknames and common name misspellings.
  • Supports returning "certainty of victory" confidence level based on media scorecards.
  • Banters and has many easter eggs.

How to Run

  • Run make to run in foreground.
  • Run make start-background to run in background, and make stop to stop the background process.

Files

File Description
fight_finder.py Searches and pulls fight data from mmadecisions.com using BeautifulSoup.
decision_bot.py Runs the bot on Reddit.
notify_account.py Notifies my personal account of DecisionBot's status.
config.yaml Bot configs.
commented.txt List of recent comment ids that triggered the bot.
nicknames.txt List of common nicknames and name misspellings.
rematches.txt Correctly adjusted rematch numbers (if there was a finished fight, the rematch numbers need to be adjusted).

Praise

About

Reddit bot that retrieves and posts MMA decision scorecards on r/mma.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published