Giter Site home page Giter Site logo

polybot's Introduction

Project Overview

This project contains a Discord bot that is built and deployed using the AWS Serverless Application Model (SAM). The bot's source code runs on AWS Lambda, and it utilizes listener servers as intermediaries between the Lambda function and messaging services like Discord.

The listener servers receive events and messages from Discord and forward them to the AWS Lambda function, which processes the data and sends responses back through the listener servers to Discord. This architecture allows for a scalable and efficient bot that can handle a large number of events and messages.

Start

  1. python3 install-requirements.py to install all the dependencies required for the project.
  2. sam build to build the AWS SAM project, which will package and prepare the Lambda function and related resources.
  3. sam deploy to create or update the stack in AWS, deploying the Lambda function and configuring the required resources and permissions.

Environment variables

Create a .env file in the root directory to store environment variables. Add the following variables:

  • BOT_TOKEN: The Discord bot token for authenticating your bot with the Discord API
  • POLYBOT_ENDPOINT: The endpoint for your Polybot API

For example: BOT_TOKEN=your_discord_bot_token_here POLYBOT_ENDPOINT=https://your_polybot_endpoint_here

Make sure to replace the placeholders with your actual bot token and Polybot API endpoint.

Start listeners

cd listenerServers && python3 discordListener.py to start the bot listener in Discord

polybot's People

Contributors

crystaalroo avatar franco1010 avatar

Watchers

 avatar

polybot's Issues

Add a contest from Polygon

Command:
!polygon contest add [contestid]

  • Check if contest is not already in a group.
  • Check if Polybot has access to the contest.
  • Ask to user to change Statement name to a UUID.
  • User has 3 minutes to change it.

Command:
!polygon contest add [contestid] --done

  • Check that theres a statement with that UUID.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.