/SpongeBot

A reddit bot used to give information from the Spongebob Wikia

Primary LanguagePythonMIT LicenseMIT

SpongeBot

A reddit bot used to give information from the Spongebob Wikia

Usage

Episodes By Name

  • To ask for an episode by name, simply comment

    "!spongebot [name of the episode]" (ex. "!spongebot Can You Spare a Dime?")

Episodes By Episode Number

To get an episode by episode number, you have to comment in one of the following forms:

  • !spongebot (Season or Series) [Season Number] Episode [Episode Number]

!spongebot Season 3 Episode 2b

  • !spongebot (SE or S)[Season Number] (E or EP)[Episode Number][a-c for segement selection] Note the lack of spaces

!spongebot S3 EP2

Requirements

  • Python 3.6 AWS Lambda Instance
  • MySQL Database (hosted on AWS MySQL RDS) - **MUST BE ACCESSIBLE TO LAMBDA **
  • praw (pip3 install praw)
  • pymysql (pip3 install pymysql)
  • wikia (pip3 install wikia)

Lambda Function Options:

  • Trigger: 3 minute Cloudwatch Event
  • Timeout: 2 minutes and 30 seconds
  • Runtime: Python 3.6
  • Handler: script.lambda_function

Changes to make before uploading:

  • Add your Database info on likes 296-298 in script.py
  • Update your Client ID, Secret, Username and Password in praw.ini

Created by Pizzaface for the /r/Spongebob community.