-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
155 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Hosting Locally | ||
> Note: The bot doesn't use a lot of resources. My testing shows it uses less than 100 MB of RAM and 0.1% of CPU | ||
## Create MongoDB URI and Discord Bot Token | ||
|
||
1. Follow this tutorial and keep the mongodb uri as well as bot token handy. | ||
2. Video: [YouTube](https://youtu.be/OQeUGL26Zdk) | ||
3. Ignore the HEROKU Variables | ||
4. Also Keep your discord user id with you. | ||
|
||
## Setting up bot locally | ||
|
||
1. Download the latest version of this repository from [this link](https://github.com/jsmsj/GdriveCloneBot/archive/refs/heads/master.zip) | ||
2. Extract it at a suitable location | ||
![](../images/local%201.png) | ||
|
||
3. Go to cogs folder and delete _config.py. | ||
4. Open _config_sample.py and edit accordingly. | ||
>Make sure to retain the quotes and brackets. | ||
![](../images/local%202.png) | ||
|
||
## Installing requirements | ||
|
||
1. Open Command Prompt in that folder. | ||
![](../images/local%203.png) | ||
|
||
2. <b>Optional Step</b> Run `pip install virtualenv`. | ||
3. Then run `virtualenv venv` to create a virtual environment. | ||
![](../images/local%204.png) | ||
4. Run `cd venv/Scripts` | ||
5. Activate the virtual environment by running `activate` | ||
6. Go back to the bot directory where main.py file is located. | ||
|
||
7. Run `pip install -r requirements.txt` | ||
![](../images/local%205.png) | ||
|
||
## Running the bot | ||
|
||
1. Run `python main.py` | ||
![](../images/local%206.png) | ||
|
||
# The bot is ready. Now you can use the bot as you wish. | ||
|
||
### Commands Examples are available in the following video : | ||
|
||
<p><a href="https://www.youtube.com/watch?v=MfnP1M0BW7Y"> <img src="https://img.shields.io/badge/See%20Video-black?style=for-the-badge&logo=YouTube" width="160""/></a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Home | GdriveCloneBot</title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="" /> | ||
<!-- CSS only --> | ||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous"> | ||
|
||
<!-- <link rel="icon" href="img/favicon.png"> --> | ||
</head> | ||
<body class = "bg-secondary"> | ||
<div class="text-bg-dark p-4 text-center h2"> | ||
<a class="navbar-brand" href="#"> | ||
<img src="./img/gdrivelogo.png" alt="" width="33" height="30"> | ||
</a> | ||
Google Drive Clone Bot | ||
<a class="navbar-brand" href="#"> | ||
<img src="./img/discordlogo.png" alt="" width="36" height="36"> | ||
</a> | ||
</div> | ||
<div class="container"> | ||
<div class="row text-center h5 justify-content-center"> | ||
<div class="col-3"> | ||
<div class="list-group list-group-horizontal"> | ||
<a href="./changelog.html" class="list-group-item list-group-item-dark" style="width:100%;">Changelog</a> | ||
</div> | ||
</div> | ||
<div class="col-3"> | ||
<div class="list-group list-group-horizontal"> | ||
<a href="https://www.youtube.com/watch?v=MfnP1M0BW7Y" class="list-group-item list-group-item-dark" style="width:100%;">Video Tutorial</a> | ||
</div> | ||
</div> | ||
<div class="col-3"> | ||
<div class="list-group list-group-horizontal"> | ||
<a href="https://github.com/jsmsj/GdriveCloneBot" target="_blank" class="list-group-item list-group-item-dark" style="width:100%;">Github Repository</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row text-center h5 justify-content-center"> | ||
<div class="col-3"> | ||
<div class="list-group list-group-horizontal"> | ||
<a href="./host_locally.html" target="_blank" class="list-group-item list-group-item-dark" style="width:100%;">Host Locally</a> | ||
</div> | ||
</div> | ||
<div class="text-bg-light rounded m-3 p-3"> | ||
<!-- <md-block id="mdblk"> | ||
</md-block> --> | ||
<zero-md src="https://raw.githubusercontent.com/jsmsj/GdriveCloneBot/master/cogs/Host%20Locally.md" id="mdblk"></zero-md> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="position-absolute bottom-0 end-0 table-responsive"> | ||
<table class="table table-dark table-striped"> | ||
<tr> | ||
<td> | ||
<button type="button" class="btn btn-outline-info"> | ||
<a class="navbar-brand" href="https://www.github.com/jsmsj" target="_blank" rel="noopener noreferrer"> | ||
<img src="./img/githublogo.png" alt="" width="25" height="25"> | ||
jsmsj | ||
</a> | ||
</button> | ||
</td> | ||
</table> | ||
</div> | ||
<script | ||
type="module" | ||
src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@2/dist/zero-md.min.js" | ||
></script> | ||
<script src="main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.