Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
0.0.3
Browse files Browse the repository at this point in the history
Updated installation-guide, added stop command and fixed a few bugs
  • Loading branch information
Minimine committed Apr 4, 2018
1 parent b0ccf59 commit 632ed96
Show file tree
Hide file tree
Showing 13 changed files with 228 additions and 76 deletions.
3 changes: 3 additions & 0 deletions Docs/css/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ div#content::-webkit-scrollbar-thumb{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: rgb(35,35,35);
}
div#content a {
color: rgb(200, 200, 200);
}

div#content table {
background-color: #000;
Expand Down
61 changes: 33 additions & 28 deletions Docs/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE HTML>
<html>
<head>

<title>MineBot Documentation</title>

<!-- Others -->
<link rel="icon" href="images/ws_logo.png"></link>

Expand Down Expand Up @@ -49,39 +49,41 @@ <h3>Get the bot?</h3>
<h4>Windows</h4>
<p>1. Install Python: <a href="https://www.python.org/downloads/">Python</a></p>
<p>2. Install NodeJS: <a href="https://nodejs.org/en/">NodeJS</a></p>
<p>3. Download MineBot: <a href="https://github.com/MinimineLP/MineBot">MineBot</a> (or, if you have installed git type <input value="git clone https://github.com/MinimineLP/MineBot" class="copy" style="width:285px" readonly/> in your command prompt)</p>
<p>3. Install ffmpeg: <a href="https://www.ffmpeg.org/">ffmpeg</a></p>
<p>4. Download MineBot: <a href="https://github.com/MinimineLP/MineBot">MineBot</a> (or, if you have installed git type <input value="git clone https://github.com/MinimineLP/MineBot" class="copy" style="width:285px" readonly/> in your command prompt)</p>
<p>5 Go <a href="https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp">here</a> and create a google account.</p>
<p>6. Go <a href="https://console.developers.google.com/apis">here</a> click at select Project and then on the '+'</a>
<p>7. Now select your project and enable Youtube data Api v3 and gmail api</p>
<p>8. Now go left on access data and create an api key and a OAuth 2.0-Client-ID</p>
<p>9 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!</p>
<p>10. Open the folder with any command prompt and type <input value="pip install --upgrade google-api-python-client" class="copy" style="width:265px" readonly/> to install the python package</p>
<p>11. Now install the npm packages <input value="MineBot install" class="copy" style="width:86px" readonly/></p>
<p>12. Now the bot is installed. Now just type <input value="MineBot start" class="copy" style="width:80px" readonly/></a>, so it will be started. If you want it to automatically restart, type MineBot <input value="MineBot loopstart" style="width:105px" class="copy" readonly/></p>
<p>13. Go <a href="https://discordapp.com/developers/applications/me">here</a>, create an Application and type in the TOKEN in the bot in the console, when you asked for it.</p>
<p>14. Replace in this Link the [ID] with your bots / applications id: <input value="https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591" class="copy" style="width:547px" readonly/> and over this link add the bot to your server.
<p>15. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 8</p>
<p>16 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type<input value="MineBot start" class="copy" style="width:80px" readonly/></a> or <input value="MineBot loopstart" style="width:105px" class="copy" readonly/></p>
</div>
<br>
<br>
<br>
<div id="install_linux">
<h4>Linux and Raspbian</h4>
<p>1. Type <input value="sudo apt-get update" class="copy" style="width:118px" readonly/> in you command prompt</p>
<p>2. Type <input value="sudo apt-get install node nodejs npm python3 python-pip git screen ffmpeg -y" class="copy" style="width:455px" readonly/> in your command prompt to install the base programms.</p>
<p>3. Type <input value="git clone https://github.com/MinimineLP/MineBot" class="copy" style="width:285px" readonly/> in your command prompt to download the bot.</p>
<p>4 Go <a href="https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp">here</a> and create a google account.</p>
<p>5. Go <a href="https://console.developers.google.com/apis">here</a> click at select Project and then on the '+'</a>
<p>6. Now select your project and enable Youtube data Api v3 and gmail api</p>
<p>7. Now go left on access data and create an api key and a OAuth 2.0-Client-ID</p>
<p>8 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!</p>
<p>9. Open the folder with any command prompt and type <input value="pip install --upgrade google-api-python-client" class="copy" style="width:265px" readonly/> to install the python package</p>
<p>10. Now install the npm packages <input value="MineBot install" class="copy" style="width:86px" readonly/></p>
<p>11. Now the bot is installed. Now just type <input value="MineBot start" class="copy" style="width:80px" readonly/></a>, so it will be started. If you want it to automatically restart, type MineBot <input value="MineBot loopstart" style="width:105px" class="copy" readonly/></p>
<p>9. Type <input value="pip install --upgrade google-api-python-client" class="copy" style="width:265px" readonly/> in your command prompt to install the python package.</p>
<p>10. Type <input value="npm install" class="copy" style="width:64px" readonly/> in your command prompt to install the python packages.</p>
<p>11. To start type <input value="screen -L -S MineBot bash start.sh" class="copy" style="width:205px" readonly/> in your command prompt.</p>
<p>12. Go <a href="https://discordapp.com/developers/applications/me">here</a>, create an Application and type in the TOKEN in the bot in the console, when you asked for it.</p>
<p>13. Replace in this Link the [ID] with your bots / applications id: <input value="https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591" class="copy" style="width:547px" readonly/> and over this link add the bot to your server.
<p>14. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 8</p>
<p>15 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type<input value="MineBot start" class="copy" style="width:80px" readonly/></a> or <input value="MineBot loopstart" style="width:105px" class="copy" readonly/></p>
</div>
<br>
<br>
<br>
<div id="install_linux">
<h4>Linux and Raspbian</h4>
<p>1. Type <input value="sudo apt-get install node nodejs npm python3 python-pip git screen -y" class="copy" style="width:411px" readonly/> in your command prompt to instal the base programms.</p>
<p>2. Type <input value="git clone https://github.com/MinimineLP/MineBot" class="copy" style="width:285px" readonly/> in your command prompt to download the bot.</p>
<p>3 Go <a href="https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp">here</a> and create a google account.</p>
<p>4. Go <a href="https://console.developers.google.com/apis">here</a> click at select Project and then on the '+'</a>
<p>5. Now select your project and enable Youtube data Api v3 and gmail api</p>
<p>6. Now go left on access data and create an api key and a OAuth 2.0-Client-ID</p>
<p>7 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!</p>
<p>8. Type <input value="pip install --upgrade google-api-python-client" class="copy" style="width:265px" readonly/> in your command prompt to install the python package.</p>
<p>9. Type <input value="npm install" class="copy" style="width:64px" readonly/> in your command prompt to install the python packages.</p>
<p>10. To start type <input value="screen -L -S MineBot bash start.sh" class="copy" style="width:205px" readonly/> in your command prompt.</p>
<p>11. Go <a href="https://discordapp.com/developers/applications/me">here</a>, create an Application and type in the TOKEN in the bot in the console, when you asked for it.</p>
<p>12. Replace in this Link the [ID] with your bots / applications id: <input value="https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591" class="copy" style="width:547px" readonly/> and over this link add the bot to your server.
<p>13. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 7</p>
<p>14 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type <input value="screen -L -S MineBot bash start.sh" class="copy" style="width:205px" readonly/></p>
<p>14. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 7</p>
<p>15 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type <input value="screen -L -S MineBot bash start.sh" class="copy" style="width:205px" readonly/></p>
</div>
<br>
<br>
Expand Down Expand Up @@ -148,6 +150,9 @@ <h3>Commands + Permissions</h3>
<th>rip &lt;name>;(reason)</th>
<th>funny.rip</th>
</tr>
<tr>
<th>stop</th>
<th>system.stop (Only in global-permissions.yml. not for guild owners)</th>
</table>
</div>
<div id="MIT" style="display: none;">
Expand Down
56 changes: 29 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MineBot

[MineBot](github.com/MinimineLP/MineBot),
a discord managing bot.
a discord managing bot. Check out our [discord support server](https://discord.gg/bdJcejA)

**Note:** We would advise you to use our [html documentation](Docs).

Expand All @@ -15,63 +15,65 @@ We would advise you to use our [html documentation](Docs). It will be automatica

2\. Install NodeJS: [NodeJS](https://nodejs.org/en/)

3\. Download MineBot: [MineBot](https://github.com/MinimineLP/MineBot) (or, if you have installed git type **git clone https://github.com/MinimineLP/MineBot** in your command prompt)
3\. Install ffmpeg: [ffmpeg](https://www.ffmpeg.org/)
4\. Download MineBot: [MineBot](https://github.com/MinimineLP/MineBot) (or, if you have installed git type **git clone https://github.com/MinimineLP/MineBot** in your command prompt)

4 Go [here](https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp) and create a google account.
5\. Go [here](https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp) and create a google account.

5\. Go [here](https://console.developers.google.com/apis) click at select Project and then on the '+'
6\. Go [here](https://console.developers.google.com/apis) click at select Project and then on the '+'

6\. Now select your project and enable Youtube data Api v3 and gmail api
7\. Now select your project and enable Youtube data Api v3 and gmail api

7\. Now go left on access data and create an api key and a OAuth 2.0-Client-ID
8\. Now go left on access data and create an api key and a OAuth 2.0-Client-ID

8 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!
9 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!

9\. Open the folder with any command prompt and type **pip install --upgrade google-api-python-client** to install the python package
10\. Open the folder with any command prompt and type **pip install --upgrade google-api-python-client** to install the python package

10\. Now install the npm packages **MineBot install**
11\. Now install the npm packages **MineBot install**

11\. Now the bot is installed. Now just type **MineBot start**, so it will be started. If you want it to automatically restart, type MineBot **MineBot loopstart**
12\. Now the bot is installed. Now just type **MineBot start**, so it will be started. If you want it to automatically restart, type MineBot **MineBot loopstart**

12\. Go [here](https://discordapp.com/developers/applications/me), create an Application and type in the TOKEN in the bot in the console, when you asked for it.
13\. Go [here](https://discordapp.com/developers/applications/me), create an Application and type in the TOKEN in the bot in the console, when you asked for it.

13\. Replace in this Link the \[ID\] with your bots / applications id: **https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591** and over this link add the bot to your server.
14\. Replace in this Link the \[ID\] with your bots / applications id: **https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591** and over this link add the bot to your server.

14\. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 8
15\. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 8

15 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type**MineBot start** or **MineBot loopstart**
16 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type**MineBot start** or **MineBot loopstart**





#### Linux and Raspbian
1\. Type **sudp apt-get upgrade** in your command prompt

1\. Type **sudo apt-get install node nodejs npm python3 python-pip git screen -y** in your command prompt to instal the base programms.
2\. Type **sudo apt-get install node nodejs npm python3 python-pip git screen ffmpeg -y** in your command prompt to instal the base programms.

2\. Type **git clone https://github.com/MinimineLP/MineBot** in your command prompt to download the bot.
3\. Type **git clone https://github.com/MinimineLP/MineBot** in your command prompt to download the bot.

3 Go [here](https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp) and create a google account.
4 Go [here](https://accounts.google.com/signup/v2/webcreateaccount?hl=en-GB&flowName=GlifWebSignIn&flowEntry=SignUp) and create a google account.

4\. Go [here](https://console.developers.google.com/apis) click at select Project and then on the '+'
5\. Go [here](https://console.developers.google.com/apis) click at select Project and then on the '+'

5\. Now select your project and enable Youtube data Api v3 and gmail api
6\. Now select your project and enable Youtube data Api v3 and gmail api

6\. Now go left on access data and create an api key and a OAuth 2.0-Client-ID
7\. Now go left on access data and create an api key and a OAuth 2.0-Client-ID

7 Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!
8\. Now go on the Auth 2.0-Client-ID and lick download json. Call the file client_secret.json and do it into the bots folder. Now remember the api key, you will be asked for it in the installer when you first start the bot!

8\. Type **pip install --upgrade google-api-python-client** in your command prompt to install the python package.
9\. Type **pip install --upgrade google-api-python-client** in your command prompt to install the python package.

9\. Type **npm install** in your command prompt to install the python packages.
10\. Type **npm install** in your command prompt to install the python packages.

10\. To start type **screen -L -S MineBot bash start.sh** in your command prompt.
11\. To start type **screen -L -S MineBot bash start.sh** in your command prompt.

11\. Go [here](https://discordapp.com/developers/applications/me), create an Application and type in the TOKEN in the bot in the console, when you asked for it.
12\. Go [here](https://discordapp.com/developers/applications/me), create an Application and type in the TOKEN in the bot in the console, when you asked for it.

12\. Replace in this Link the \[ID\] with your bots / applications id: **https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591** and over this link add the bot to your server.
13\. Replace in this Link the \[ID\] with your bots / applications id: **https://discordapp.com/oauth2/authorize?client_id=[ID]&scope=bot&permissions=2146958591** and over this link add the bot to your server.

13\. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 7
14\. Enable Developer options on on your Discord account and copy your user id, and type it in the console. Now you will be asked for the email. Type in the Mail address of our futured createted google account! At last type in our api key that we generad at point 7

14 Now everything is ready. You mustn't do that at every start of the bot. If it stops just type **screen -L -S MineBot bash start.sh**

Expand Down
3 changes: 3 additions & 0 deletions src/ConfigurationCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ config.save();

var messages = yaml.createConfig(`messages.yml`);
messages.setStandart(`onReady`, `Connected!`);
messages.setStandart(`no_permission`, `Sorry, %user% but you aren't permitted to use this command!`);
messages.setStandart(`shutdown`, `Shutting down...`);
messages.setStandart(`not_programmed_for_answering_private_messages`, `Sorry, but I am not programmed for answering private Messages. You can just type a few commands in private channels to me, for example -stop. But this command is just for global Admins!`);
messages.save();
Loading

0 comments on commit 632ed96

Please sign in to comment.