Coder Social home page Coder Social logo

gkuo06 / paigram Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paigramteam/paigram

0.0 0.0 0.0 53.27 MB

telegram robot, query the official genshin information

License: GNU Affero General Public License v3.0

Shell 0.01% Python 73.65% CSS 4.19% HTML 13.34% Mako 0.04% Dockerfile 0.17% Less 1.29% Jinja 7.30%

paigram's Introduction

PaiGram

code_style

Introduction

PaiGram based on python-telegram-bot

Alt

中文文档

System Dependencies

  • Python 3.11+
  • MySQL or SQLite
  • Redis

Usage

Depending on your preferred environment, follow one of the setups below:

WSL2 Ubuntu 22.04 Setup

For contributors using WSL2 on Ubuntu 22.04, follow the detailed guide here.

Standard Setup (All Environments)

1. Clone PaiGram from Git

git clone [email protected]:PaiGramTeam/PaiGram.git
cd PaiGram/
git submodule update --init --recursive

2. Project Setup

It's recommended to use a virtual environment. You can set it up via venv or virtualenv.

Create Virtual environment:

python3 -m venv venv

Activate the virtual environment:

For Linux:

source venv/bin/activate

For Windows Command Prompt:

venv\Scripts\activate.bat

For Windows PowerShell:

.\venv\Scripts\Activate.ps1

Install Dependencies:

pip install poetry
poetry install --extras all
playwright install chromium

Optional Dependencies

poetry install --extras all

Edit Config:

Create a dotenv config (.env) based on the given example. Ensure to provide the necessary database connection details and bot token parameters.

cp .env.example .env

For detailed configurations, refer to the Wiki/Env Settings.

3. Database Setup with Alembic

alembic upgrade head

4. Run PaiGram

Ensure the venv is still active:

python ./run.py

Alternative Deployments

Additional Information

This project is currently being expanded, adding more entertainment and information query features related to Genshin Impact. Stay tuned!

Acknowledgments

Nickname Introduce
原神抽卡全机制总结 本项目抽卡模拟器使用的逻辑
西风驿站 猫冬 本项目攻略图图源
Yunzai-Bot 本项使用的抽卡图片和前端资源来源
Crawler-ghhw 本项目参考的爬虫代码
Enka.Network 角色卡片的数据来源
miao-plugin 角色卡片的参考项目

paigram's People

Contributors

luoshuijs avatar omg-xtao avatar dependabot[bot] avatar karakoo avatar chuangbo avatar nahidabuer avatar littlemengbot avatar sihuan avatar zhxycn avatar billyzou0741326 avatar pre-commit-ci[bot] avatar cworld1 avatar daviszerro avatar nene07210721 avatar stellacaerulea avatar ijnkawakaze avatar deepsource-autofix[bot] avatar hakureiyuyuko avatar xr1s avatar anotiawang avatar

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.