Skip to content

aashutoshrathi/git-profiler-bot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22.
- [Commits](certifi/python-certifi@2022.12.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aaf09a7

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

git-profiler-bot

Travis Badge

This is a Telegram bot which fetches Profile summary using GitHub API. Ported to serverless as part of #noserverNovember

How to use πŸ€”

Usage

What do I need πŸ€”

  • A AWS key configured locally, see here.
  • NodeJS.
  • A Telegram account.

Installing

# Install the Serverless Framework
$ npm install serverless -g

# Install the necessary plugins
$ npm install

# Get a bot from Telegram, sending this message to @BotFather
Go to https://t.me/BotFather
$ /newbot

# Put the token received into a file called serverless.env.yml, like this
$ cat >serverless.env.yml
TELEGRAM_TOKEN: <your_token>

# Change app and tenant to your ones
$ nano serverless.yml
app: <your-app>
tenant: <username>

# Export you AWS Keys to your shell

- Get some help from [here](https://serverless.com/framework/docs/providers/aws/guide/credentials/)

# Deploy it!
$ serverless deploy

# With the URL returned in the output, configure the Webhook
$ curl -X POST https://<your_url>.amazonaws.com/dev/set_webhook

Testing

# Create a virtual python env
$ python3 -m venv pytest-env

# Activate the virtual env
$ source pytest-env/bin/activate

# Install following modules
$ pip3 install -r requirements.txt

# Run tests
$ pytest

Contributing

Feel free to raise issues and send PRs. πŸ˜„


Made with ❀️ by Aashutosh Rathi