Skip to content

Commit 1cc9cd8

Browse files
Update
0 parents  commit 1cc9cd8

File tree

208 files changed

+27448
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+27448
-0
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.env
2+
.cache
3+
log.txt
4+
.DS_Store
5+
*.session
6+
raw_files/
7+
cache/
8+
downloads/
9+
__pycache__/
10+
*.session-journal

.github/README.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2+
3+
<h2 align="center">
4+
──
5+
「⛦ 𝗠𝗨𝗦𝗜𝗖 ⛦」
6+
──
7+
</h2>
8+
9+
10+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
11+
12+
<h3 align="center">
13+
─「 ᴅᴇᴩʟᴏʏ ᴏɴ ʜᴇʀᴏᴋᴜ 」─
14+
15+
</h3>
16+
17+
<p align="center"><a href="https://dashboard.heroku.com/new?template=https://github.com/WCGKING/TheRapNation"> <img src="https://img.shields.io/badge/Deploy%20On%20Heroku-black?style=for-the-badge&logo=heroku" width="220" height="38.45"/></a></p>
18+
19+
</p>
20+
21+
<img src="https://readme-typing-svg.herokuapp.com?color=FF0000&width=720&lines=⚠️+FORK+AND+STAR+THIS+REPO+BEFORE+USING⚠️+...">
22+
23+
<h3 align="center">
24+
─「 ᴅᴇᴩʟᴏʏ ᴏɴ ʟᴏᴄᴀʟ ʜᴏsᴛ/ ᴠᴘs 」─
25+
</h3>
26+
27+
- Get your [Necessary Variables]( https://github.com/eccentriccoder01/TheRapNation/main/sample.env)
28+
---
29+
30+
### 🔧 Quick Setup
31+
32+
1. **Upgrade & Update:**
33+
```bash
34+
sudo apt-get update && sudo apt-get upgrade -y
35+
```
36+
37+
2. **Install Required Packages:**
38+
```bash
39+
sudo apt-get install python3-pip ffmpeg -y
40+
```
41+
3. **Setting up PIP**
42+
```bash
43+
sudo pip3 install -U pip
44+
```
45+
4. **Installing Node**
46+
```bash
47+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && source ~/.bashrc && nvm install v18
48+
```
49+
5. **Clone the Repository**
50+
```bash
51+
git clone https://github.com/eccentriccoder01/TheRapNation && cd TheRapNation
52+
```
53+
6. **Install Requirements**
54+
```bash
55+
pip3 install -U -r requirements.txt
56+
```
57+
7. **Create .env with sample.env**
58+
```bash
59+
cp sample.env .env
60+
```
61+
- Edit .env with your vars
62+
8. **Editing Vars:**
63+
```bash
64+
vi .env
65+
```
66+
- Edit .env with your values.
67+
- Press `I` button on keyboard to start editing.
68+
- Press `Ctrl + C` once you are done with editing vars and type `:wq` to save .env or `:qa` to exit editing.
69+
9. **Installing tmux**
70+
```bash
71+
sudo apt install tmux -y && tmux
72+
```
73+
10. **Run the Bot**
74+
```bash
75+
bash start
76+
━━━━━━━━━━━━━━━━━━━━
77+
78+
<h3 align="center">
79+
─「 sᴜᴩᴩᴏʀᴛ 」─
80+
</h3>
81+
82+
<p align="center">
83+
<a href="https://t.me/TheRapNation_Support"><img src="https://img.shields.io/badge/-Support%20Group-blue.svg?style=for-the-badge&logo=Telegram"></a>
84+
</p>
85+
86+
<p align="center">
87+
<a href="https://t.me/TheRapNation"><img src="https://img.shields.io/badge/-Support%20Channel-blue.svg?style=for-the-badge&logo=Telegram"></a>
88+
</p>

.github/SECURITY.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.
22+

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "00:00"
8+
timezone: "Asia/Kolkata"
9+
labels:
10+
- "dependencies"
11+
open-pull-requests-limit: 50
12+

.github/workflows/codeql.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
branches: [ "main" ]
19+
schedule:
20+
- cron: '25 1 * * 5'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners
29+
# Consider using larger runners for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
32+
permissions:
33+
actions: read
34+
contents: read
35+
security-events: write
36+
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
language: [ 'python' ]
41+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
42+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
43+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
44+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
45+
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v3
49+
50+
# Initializes the CodeQL tools for scanning.
51+
- name: Initialize CodeQL
52+
uses: github/codeql-action/init@v2
53+
with:
54+
languages: ${{ matrix.language }}
55+
# If you wish to specify custom queries, you can do so here or in a config file.
56+
# By default, queries listed here will override any specified in a config file.
57+
# Prefix the list here with "+" to use these queries and those in the config file.
58+
59+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
60+
# queries: security-extended,security-and-quality
61+
62+
63+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
64+
# If this step fails, then you should remove it and run the build manually (see below)
65+
- name: Autobuild
66+
uses: github/codeql-action/autobuild@v2
67+
68+
# ℹ️ Command-line programs to run using the OS shell.
69+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
70+
71+
# If the Autobuild fails above, remove it and uncomment the following three lines.
72+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
73+
74+
# - run: |
75+
# echo "Run, Build Application using script"
76+
# ./location_of_script_within_repo/buildscript.sh
77+
78+
- name: Perform CodeQL Analysis
79+
uses: github/codeql-action/analyze@v2
80+
with:
81+
category: "/language:${{matrix.language}}"

.github/workflows/docker-image.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Build the Docker image
18+
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.env
2+
.cache
3+
log.txt
4+
.DS_Store
5+
*.session
6+
raw_files/
7+
cache/
8+
downloads/
9+
__pycache__/
10+
*.session-journal

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM nikolaik/python-nodejs:python3.10-nodejs19
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends ffmpeg \
5+
&& apt-get clean \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
COPY . /app/
9+
WORKDIR /app/
10+
RUN pip3 install --no-cache-dir -U -r requirements.txt
11+
12+
CMD bash start

0 commit comments

Comments
 (0)