Skip to content

Commit

Permalink
Add Gitpod support + do some refactoring on README (UsergeTeam#173)
Browse files Browse the repository at this point in the history
* [gitpod] Add Gitpod support for support cloud dev environments

By adding Gitpod support, Userge devs and contributors will automate
the last missing piece in their DevOps pipeline. Users can also
fire up a Gitpod workspace just to deploy Userge onto their existing
Heroku apps.

Signed-off-by: Andrei Jiroh Eugenio Halili <[email protected]>

* [repo] Do some chores on README.

Revamping the setup section and some formatting stuff.

Signed-off-by: Andrei Jiroh Eugenio Halili <[email protected]>

* [readme] Forget to add Gitpod Ready-to-Code badge

Signed-off-by: Andrei Jiroh Eugenio Halili <[email protected]>

* [repo] Update README + Gitpod config file

As requested on https://t.me/usergeot/595521, I updated the
README to update support chat to @usergeot.
Also in this commit, I fix some syntax errors on the script
after dependencies are installed.

Signed-off-by: Andrei Jiroh Eugenio Halili <[email protected]>
  • Loading branch information
Andrei Jiroh Eugenio Halili authored Oct 14, 2020
1 parent adaa9bd commit 8f6919c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gitpod/workspace-full

# Simply install Heroku CLI
# Just in case we use Gitpod for deployment.
RUN curl https://cli-assets.heroku.com/install.sh | -
13 changes: 13 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image:
file: .gitpod.Dockerfile

tasks:
# Install dependencies first.
- init: pip install -r ./requirements.txt
# Then run if there's config.env, otherwise prompt to configure.
command: >
if [[ -f config.env ]]; then
bash run
else
echo "Please copy the config.env.sample file and edit it to continue."
fi
48 changes: 28 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,23 @@

# Userge πŸ”₯

[![Build Status](https://travis-ci.com/UsergeTeam/Userge.svg?branch=dev)](https://travis-ci.com/UsergeTeam/Userge) ![Python Version](https://img.shields.io/badge/python-3.8-lightgrey) ![Release](https://img.shields.io/github/v/release/UsergeTeam/Userge) ![Stars](https://img.shields.io/github/stars/UsergeTeam/Userge) ![Forks](https://img.shields.io/github/forks/UsergeTeam/Userge) ![Issues Open](https://img.shields.io/github/issues/UsergeTeam/Userge) ![Issues Closed](https://img.shields.io/github/issues-closed/UsergeTeam/Userge) ![PR Open](https://img.shields.io/github/issues-pr/UsergeTeam/Userge) ![PR Closed](https://img.shields.io/github/issues-pr-closed/UsergeTeam/Userge) ![Contributors](https://img.shields.io/github/contributors/UsergeTeam/Userge) ![Repo Size](https://img.shields.io/github/repo-size/UsergeTeam/Userge) ![License](https://img.shields.io/github/license/UsergeTeam/Userge) ![Commit Activity](https://img.shields.io/github/commit-activity/m/UsergeTeam/Userge) [![Plugins Repo!](https://img.shields.io/badge/Plugins%20Repo-!-orange)](https://github.com/UsergeTeam/Userge-Plugins) [![Join Channel!](https://img.shields.io/badge/Join%20Channel-!-red)](https://t.me/theUserge) [![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/UsergeTeam/Userge/?ref=repository-badge)
[![Build Status](https://travis-ci.com/UsergeTeam/Userge.svg?branch=dev)](https://travis-ci.com/UsergeTeam/Userge)
![Python Version](https://img.shields.io/badge/python-3.8-lightgrey)
![Release](https://img.shields.io/github/v/release/UsergeTeam/Userge)
![Stars](https://img.shields.io/github/stars/UsergeTeam/Userge)
![Forks](https://img.shields.io/github/forks/UsergeTeam/Userge)
![Issues Open](https://img.shields.io/github/issues/UsergeTeam/Userge)
![Issues Closed](https://img.shields.io/github/issues-closed/UsergeTeam/Userge)
![PRs Open](https://img.shields.io/github/issues-pr/UsergeTeam/Userge)
![PRs Closed](https://img.shields.io/github/issues-pr-closed/UsergeTeam/Userge)
![Contributors](https://img.shields.io/github/contributors/UsergeTeam/Userge)
![Repo Size](https://img.shields.io/github/repo-size/UsergeTeam/Userge)
![License](https://img.shields.io/github/license/UsergeTeam/Userge)
![Commit Activity](https://img.shields.io/github/commit-activity/m/UsergeTeam/Userge)
[![Plugins Repo!](https://img.shields.io/badge/Plugins%20Repo-!-orange)](https://github.com/UsergeTeam/Userge-Plugins)
[![Join Channel!](https://img.shields.io/badge/Join%20Channel-!-red)](https://t.me/theUserge)
[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/UsergeTeam/Userge/?ref=repository-badge)
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/UsergeTeam/Userge)

> **Userge** is a Powerful , _Pluggable_ Telegram UserBot written in _Python_ using [Pyrogram](https://github.com/pyrogram/pyrogram).
Expand All @@ -46,7 +62,7 @@
* split / combine
* gadmin
* plugin manager
* etc...
* ...and more
* Channel & Group log support
* Database support
* Build-in help support
Expand Down Expand Up @@ -98,25 +114,17 @@ async def test_filter(message: Message):
## How To Deploy πŸ‘·

* **[HEROKU](https://www.heroku.com/) Method** πŸš€

> First click [**this**](https://heroku.com/deploy?template=https://github.com/UsergeTeam/Userge/tree/master)
> Fill `API_ID`, `API_HASH`, `DATABASE_URL` and `LOG_CHANNEL_ID` (**required**)
> Choose your [**MODE**](https://github.com/UsergeTeam/Userge#userge-modes-)
> Then fill other **non-required** vars as relevent to your **MODE**
> Finally **hit deploy** button
> [**NOTE**] : your can fill other vars as your need and they are optional. (settings -> reveal config vars)
* **Docker Method** 🐳
* With Heroku:
> **NOTE** : your can fill other vars as your need and they are optional. (settings -> reveal config vars)
* First click [**this**](https://heroku.com/deploy?template=https://github.com/UsergeTeam/Userge/tree/master)
* Fill `API_ID`, `API_HASH`, `DATABASE_URL` and `LOG_CHANNEL_ID` (**required**)
* Choose your [**MODE**](https://github.com/UsergeTeam/Userge#userge-modes-)
* Then fill other **non-required** vars as relevent to your **MODE**
* Finally **hit deploy** button

* With Docker 🐳
- [**See Detailed Guide**](resources/radmeDocker.md)
* **Other Method** πŸ”§

* With Git, Python and pip πŸ”§
```bash
# clone the repo
git clone https://github.com/UsergeTeam/Userge.git
Expand Down Expand Up @@ -147,7 +155,7 @@ async def test_filter(message: Message):

### Support & Discussions πŸ‘₯

> Head over to the [Discussion Group](https://t.me/slbotsbugs) and [Update Channel](https://t.me/theUserge)
> Head over to the [Discussion Group](https://t.me/usergeot) and [Update Channel](https://t.me/theUserge)
### Project Credits πŸ’†β€β™‚οΈ

Expand Down

0 comments on commit 8f6919c

Please sign in to comment.