Skip to content

Commit

Permalink
Merge pull request #1 from JiyaGupta-cs/main
Browse files Browse the repository at this point in the history
feat: Discord Bot
  • Loading branch information
Mr-Sunglasses authored Jun 21, 2024
2 parents 1ad081f + 99cdbcc commit d980e06
Show file tree
Hide file tree
Showing 36 changed files with 969 additions and 505 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BOT_TOKEN= YOUR_DISCORD_BOT_TOKEN

AIRTABLE_ACCESS_TOKEN= YOUR_AIRTABLE_ACCESS_TOKEN

BASE_ID= YOUR_BASE_ID

BASE_NAME= YOUR_BASE_NAME
172 changes: 1 addition & 171 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,172 +1,2 @@
### Flask template
instance/*
!instance/.gitignore
.webassets-cache
.env

### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

#Database
users.db

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
api/.env
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

node_modules
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/fosscu-bot.iml

This file was deleted.

44 changes: 0 additions & 44 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# FOSSCU_Tomodachi

The FOSSCU_Tomodachi is a FOSSCU-K Discord Bot is a versatile Discord bot designed to interact with GitHub and Airtable to fetch and display various organizational data such as members, open issues, pull requests, and XPs.

## Features

- Displays XPs of members
- Displays organization members
- Displays open issues
- Display the available commands

## Commands

- `!tomodachi`: Display the commands
- `!xps`: Display the XPs of the members
- `!issues`: Fetch and display open issues
- `!members`: Fetch and display organization members
Empty file removed api/__init__.py
Empty file.
19 changes: 0 additions & 19 deletions api/database.py

This file was deleted.

11 changes: 0 additions & 11 deletions api/hashing.py

This file was deleted.

31 changes: 0 additions & 31 deletions api/models.py

This file was deleted.

15 changes: 0 additions & 15 deletions api/oauth2.py

This file was deleted.

7 changes: 0 additions & 7 deletions api/requirements.txt

This file was deleted.

Empty file removed api/routers/__init__.py
Empty file.
Loading

0 comments on commit d980e06

Please sign in to comment.