Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

leandcesar/bobotinho

Repository files navigation

Python codecov License Black

Bobotinho

‎💻 Technologies

  • twitchio 2 is a fully asynchronous Python IRC, API, EventSub and PubSub library for Twitch
  • pynamodb is a Pythonic interface to Amazon’s DynamoDB
  • aiohttp us an asynchronous HTTP Client/Server for asyncio and Python

🧰 Services

  • Bugsnag is an error monitoring and reporting software
  • The Color API is a swiss army knife for color available as a API
  • CoinAPI is a platform which provides data APIs to cryptocurrency markets
  • Dashbot is a data platform that ingests, cleans, stores, and processes any type of Conversation Data
  • math.js is an extensive math library available as a API
  • OpenWeather provides global weather data available as a API
  • Wit.ai is an open source framework with advanced natural language processing available as a API

🏁 Getting Started

It is assumed that you have:

$ python3 --version
$ pip3 --version

🔒 Access Token

Visit Token Generator and select the "Bot Chat Token". After selecting this you can copy your "Access Token" somewhere safe.

⚙️ Configuring

After clone this repo, create .env file in your /bobotinho directory. Add the access token from above and dev nick after the =. Optionally add and fill other env vars (see .env.template).

BOT_TOKEN=your-token-here
BOT_SECRET=your-secrete-here
DEV_NICK=your-twitch-nick

▶️ Run

🏠 Option 1: with make

$ make install
$ make run

🐋 Option 2: with docker

It is assumed that you have Docker installed.

$ docker --version

Otherwise, you can download and install Docker here.

$ docker build -t bobotinho .
$ docker run --env-file=.env bobotinho

🐳 Option 3: with docker-compose

It is assumed that you have Docker and Docker Compose installed.

$ docker --version
$ docker-compose --version

Otherwise, you can download and install Docker Compose here.

$ docker-compose up

🎉 Use

Go to twitch.tv/DEV_NICK and send %ping.