Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 #2

Closed
wants to merge 82 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
fd46b67
Small Update
Wizkiller96 May 13, 2016
3c277f6
Update README.md
Wizkiller96 May 13, 2016
ec44add
Update README.md
Wizkiller96 May 13, 2016
a7637e6
Created .travis.yml
Wizkiller96 May 13, 2016
749a126
Small Update
Wizkiller96 May 14, 2016
b014138
Small Update
Wizkiller96 May 14, 2016
5c27ad4
Merge branch 'master' of https://gitlab.com/Wizkiller96/WizBot-Updated
Wizkiller96 May 14, 2016
053c0a8
Update Readme
Wizkiller96 May 14, 2016
91516b7
Removed some files
Wizkiller96 May 14, 2016
34cae07
Updated Console Title
Wizkiller96 May 14, 2016
d5c4f88
Updated .gitignore
Wizkiller96 May 14, 2016
869ec0f
Removed donation text.
Wizkiller96 May 14, 2016
bf8ccdb
Minor Changes
Wizkiller96 May 14, 2016
2bb3f1b
Updated .gitignore
Wizkiller96 May 14, 2016
b9f095b
Minor Change
Wizkiller96 May 14, 2016
fbd78f9
Minor Change
Wizkiller96 May 14, 2016
0d2b9be
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 14, 2016
486cc5a
Minor Update
Wizkiller96 May 14, 2016
795ba50
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 14, 2016
442fc34
.whoplays command added
Wizkiller96 May 15, 2016
0e3cba4
Added nick and last online to .uinfo (will only work if those fields …
Wizkiller96 May 16, 2016
4643b26
Updated .gitignore
Wizkiller96 May 16, 2016
dcccd69
Updated .gitignore
Wizkiller96 May 16, 2016
5c6a8fe
My first stack exception trace erasing worst practice
Wizkiller96 May 19, 2016
f397a43
Updated .gitignore
Wizkiller96 May 19, 2016
3ff2fb4
Fixing Discord.net
Wizkiller96 May 19, 2016
64a273f
Fixed some files
Wizkiller96 May 19, 2016
65a769c
Fixing .gitmodules
Wizkiller96 May 19, 2016
bba108c
Readded .gitmodules
Wizkiller96 May 19, 2016
0b8348a
Update .gitmodules
Wizkiller96 May 19, 2016
7578832
Updated .gitignore
Wizkiller96 May 19, 2016
c282397
Merge branch 'master' of https://github.com/Wizkiller96/WizBot-Update…
Wizkiller96 May 19, 2016
28ab17e
Removed discord.net
Wizkiller96 May 19, 2016
b459be0
Readded discord.net
Wizkiller96 May 19, 2016
7ca32ff
Update .gitmodules
Wizkiller96 May 19, 2016
09fb2b6
Create LinuxSetup.md
Wizkiller96 May 19, 2016
35f21ef
Preserve inner exception
Wizkiller96 May 19, 2016
42d3994
Fixed some typos
Wizkiller96 May 19, 2016
406e032
Updated commandlist
Wizkiller96 May 19, 2016
3e36a0f
log command no longer mentions
Wizkiller96 May 19, 2016
2985ee5
;cm defaults to current channel
Wizkiller96 May 20, 2016
bd78a39
Updates
Wizkiller96 May 20, 2016
b0098a8
acm as well
Wizkiller96 May 20, 2016
775607f
wowiejokes
Wizkiller96 May 20, 2016
f22ea48
wowie2
Wizkiller96 May 20, 2016
0cafe0e
wowie-3
Wizkiller96 May 20, 2016
f68bc28
wowie-4
Wizkiller96 May 20, 2016
b268550
fixed wowjoke
Wizkiller96 May 20, 2016
b35a559
Updates
Wizkiller96 May 20, 2016
8e2ce89
Added ..qdel, stop crying now
Wizkiller96 May 23, 2016
adfc0a6
Added alias
Wizkiller96 May 23, 2016
c704438
Fixed missing brackets
Wizkiller96 May 23, 2016
c2a75f3
awoken is rude
Wizkiller96 May 23, 2016
e097ecc
.whoplays no longer needs quotes for multiword games
Wizkiller96 May 23, 2016
70a5762
Updated Packages
Wizkiller96 May 23, 2016
78c538b
.inrole added
Wizkiller96 May 23, 2016
469d3f3
Updaated CustomReactionsCommands
Wizkiller96 May 23, 2016
1247e2b
Updated the .updates command
Wizkiller96 May 23, 2016
3be1a8f
Added usage example to linux interjections
Wizkiller96 May 23, 2016
be7d1f5
Updated commandlist
Wizkiller96 May 23, 2016
2ccd16c
Fixed spelling error
Wizkiller96 May 23, 2016
c13427c
Updated InfoCommands
Wizkiller96 May 23, 2016
618d6c1
added .repinv
Wizkiller96 May 25, 2016
daf4054
added .cleanv+t
Wizkiller96 May 25, 2016
80e7e83
if .iam is successfull it will delete command and confirmation after …
Wizkiller96 May 25, 2016
15fb3d6
Updated .gitmodules
Wizkiller96 May 26, 2016
706f05d
Updated discord.net
Wizkiller96 May 26, 2016
0b06f07
fixed typo, thx samvaio
Wizkiller96 May 26, 2016
38c61a9
Updated README
Wizkiller96 May 26, 2016
4d037ce
Manatee Update
Wizkiller96 May 29, 2016
06162e4
fixed cleanv+t crash
Wizkiller96 May 29, 2016
da6d5de
changed grass poke icon, fixed typelist
Wizkiller96 May 29, 2016
03133dd
Add Info for Debian 8 user
Wizkiller96 May 29, 2016
f80ad54
Updated ComprehensiveGuide
Wizkiller96 May 30, 2016
87c2aa5
Updated README
Wizkiller96 May 30, 2016
4c2a9f4
~ir error 400 should be more rare
Wizkiller96 May 30, 2016
eebec7b
ban is pruning for 7 days, fixed .whoplays
Wizkiller96 May 30, 2016
ba10dab
made my life much easier
Wizkiller96 May 30, 2016
51614c2
Updated WizBot.sln
Wizkiller96 May 30, 2016
a744abe
Update README.md
Wizkiller96 Dec 11, 2016
9e99448
Create 09.md
Wizkiller96 Dec 15, 2016
f7f0267
Merge pull request #1 from Wizkiller96/0.9
Wizkiller96 Dec 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 10 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Ignore Visual Studio temporary files, build results, and
### Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
Expand All @@ -19,10 +19,10 @@ obj/
!**/Bin/Debug/WebSocket4Net.dll
!**/Bin/Debug/sqlite3.dll
!**/Bin/Debug/credentials_example.json
NadekoBot/bin/debug/*.*
NadekoBot/bin/debug/data/permissions
NadekoBot/bin/debug/data/incidents
!NadekoBot/bin/Debug/data/currency_images/*
WizBot/bin/debug/*.*
WizBot/bin/debug/data/permissions
WizBot/bin/debug/data/incidents
!WizBot/bin/Debug/data/currency_images/*
Tests/bin

# NuGet Packages
Expand All @@ -33,6 +33,8 @@ Tests/bin
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
NadekoBot/bin/Debug/data/nadekobot.sqlite
NadekoBot/bin/Debug/data/config.json
NadekoBot/bin/Debug/data/ServerSpecificConfigs.json
WizBot/bin/Debug/data/WizBot.sqlite
WizBot/bin/Debug/data/config.json
WizBot/bin/Debug/data/ServerSpecificConfigs.json
/BuildProcessTemplates
/.vs/config
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "discord.net"]
path = discord.net
url = git:https://github.com/rogueexception/discord.net.git
url = git:https://github.com/rogueexception/discord.net.git
1 change: 1 addition & 0 deletions 09.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.9
21 changes: 11 additions & 10 deletions ComprehensiveGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,39 @@ ________________________________________________________________________________
*Thanks to @Flatbread for making this guide*
________________________________________________________________________________

#### Setting Up NadekoBot v0.93.2
#### Setting Up WizBot v0.93.2
###### Prerequisites:
1) NET Framework 4.5.2 (or 4.6)
- Download WizBot
- Rename credentials_example.json into credentials.json. (Note: If you do not see a .json after credentials_example.json, do not add the .json. You likely have "Hide file extensions" as enabled.)
- Go to (https://discordapp.com/developers/applications/me). Log in if you have to with your Discord account. Press "New Application" and fill out an App Name and, optionally, an app description and icon. Afterwards, create the application. Once the application is created, click on "Create a Bot User" and confirm it. You will then see the bot's username, ID and token. Reveal and copy the token and the bot ID.
- Open up credentials.json. Paste the token into the Token field, between the quotes. Paste the ID into the BotID field. Leave email and password fields empty. Save and close credentials.json.
- Go into data folder and make sure you have config.json file. If there is no config.json, rename the config_example.json to config.json.
- Copy your CLIENT ID (that's in the same Developer page where you brought your token) and replace `12345678` in the this link:
- Go into data folder and make sure you have config.json file. If there is no config.json, rename the config_example.json to config.json. [REFERENCE IMAGE](https://cdn.discordapp.com/attachments/117523346618318850/178813495872192513/unknown.png)
- Copy your CLIENT ID (that's in the same Developer page where you brought your token) and replace `12345678` in this link:
https://discordapp.com/oauth2/authorize?client_id=12345678&scope=bot&permissions=66186303 with it. Go to that link and you will be able to add your bot to your server.
- Start NadekoBot.exe. In a text channel, **not a direct message**, type in [.uid @______] without the brackets, filling in the underlined portion with your name and send the message. Your bot will reply with a number; this is your ID. Copy this ID and close NadekoBot.exe.
- Start WizBot.exe. In a text channel, **not a direct message**, type in [.uid @______] without the brackets, filling in the underlined portion with your name and send the message. Your bot will reply with a number; this is your ID. Copy this ID and close WizBot.exe.
- Reopen credentials.json. Paste your ID into the square brackets ("OwnerIds": [1231312313]). You can add multiple owners by separating IDs with a comma. Close and save credentials.json.


________________________________________________________________________________

#### Setting Up NadekoBot For Music
#### Setting Up WizBot For Music
###### Prerequisites:
1) FFMPEG, Static Build Version (See below) Google Account
2) Soundcloud Account
2) Soundcloud Account (if you want soundcloud support)
- Download FFMPEG through the link (https://ffmpeg.zeranoe.com/builds/).
- Go to My Computer, right click and select Properties. On the left tab, select Advanced System Settings. Under the Advanced tab, select Environmental Variables near the bottom. One of the variables should be called "Path". Add a semi-colon (;) to the end followed by your FFMPEG's **bin** install location (**for example C:\\ffmpeg\\bin**). Save and close.
- Go to console.developers.google.com and log in.
- Create a new project (name does not matter). Once the project is created, go into "Enable and manage APIs."
- Under the "Other Popular APIs" section, enable "URL Shortener API". Under the "YouTube APIs" section, enable "YouTube Data API".
- Under the "Other Popular APIs" section, enable "URL Shortener API". Under the "YouTube APIs" section, enable "YouTube Data API". Also enable Custom Search Api.
- On the left tab, access Credentials. There will be a line saying "If you wish to skip this step and create an API key, client ID or service account." Click on API Key, and then Server Key in the new window that appears. Enter in a name for the server key. A new window will appear with your Google API key. Copy the key.
- Open up credentials.json. For "GoogleAPIKey", fill in with the new key.
- Go to (https://soundcloud.com/you/apps/new). Enter a name for the app and create it. You will see a page with the title of your app, and a field labeled Client ID. Copy the ID. In credentials.json, fill in "SoundcloudClientID" with the copied ID.

________________________________________________________________________________

#### Setting Up NadekoBot Permissions
###### NadekoBot's permissions can be set up to be very specific through commands in the Permissions module.
#### Setting Up WizBot Permissions
###### WizBot's permissions can be set up to be very specific through commands in the Permissions module.
Each command or module can be turned on or off at:
- a user level (so specific users can or cannot use a command/module)
- a role level (so only certain roles have access to certain commands/module)
Expand Down Expand Up @@ -75,4 +76,4 @@ Check permissions by using the letter of the level you want to check followed by

Insert an **a** before the level to edit the permission for all commands / modules for all users / roles / channels / server.

Reference the Help command (-h) for more Permissions related commands.
Reference the Help command (-h) for more Permissions related commands.
256 changes: 256 additions & 0 deletions LinuxSetup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
#SETTING UP WIZBOT ON LINUX UBUNTU 14+

######If you want WizBot to play music for you 24/7 without having to hosting it on your PC and want to keep it cheap, reliable and convenient as possible, you can try WizBot on Wiz VPS KVM server using the link https://wiz-vps.com/vps-hosting-plans/kvm/


Assuming you have followed the link above to created an account in Wiz VPS and until you get the `IP address and root password (in email)` to login, its time to begin:

**DOWNLOAD PuTTY**

https://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

**DOWNLOAD and INSTALL CyberDuck** `(for accessing filesystem using SFTP)`

https://cyberduck.io



**Follow the steps below:**

**Open PuTTY.exe** that you downloaded before, and paste or enter your `IP address` and then click **Open**

If you entered your VPS IP address correctly, it should show **login as:** in a newly opened window.

Now for **login as:**, type `root` and hit enter.

It should then, ask for password, type the `root password` you have received in your **email address registered with Wiz VPS**, then hit Enter

*(as you are running it for the first time, it will most likely to ask you to change your root password, for that, type the "password you received through email", hit Enter, enter a "new password", hit Enter and confirm that "new password" again.*
**SAVE that new password somewhere safe not just in mind**

After you done that, you are ready to write commands.

**Copy and just paste** using **mouse right-click** (it should paste automatically)

######MONO (Source: https://www.mono-project.com/docs/getting-started/install/linux/)

**1)**

<pre><code class="language-bash">sudo apt-key adv --keyserver hkp:https://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
</code></pre>
Note if the command is not be initiated, hit **Enter**

**2)**
<pre><code class="language-bash">echo "deb https://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
</code></pre>

**2.5)**
*ONLY DEBIAN 8 and later*
<pre><code class="language-bash">echo "deb https://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
</code></pre>

**3)**
<pre><code class="language-bash">apt-get install mono-devel
</code></pre>
**Type** `y` **hit Enter**
######Opus Voice Codec

**4)**
<pre><code class="language-bash">sudo apt-get install libopus0 opus-tools
</code></pre>
**Type** `y` **hit Enter**

**5)**
<pre><code class="language-bash">sudo apt-get install libopus-dev
</code></pre>

######FFMPEG

**6)**
<pre><code class="language-bash">apt-get install ffmpeg
</code></pre>
**Type** `y` **hit Enter**

`NOTE: if its "not installing" then, follow the guide here:` https://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/

*All you need to do, if you are running UBUNTU 14.04 is initiate these:*

`sudo add-apt-repository ppa:mc3man/trusty-media`

`sudo apt-get update`

`sudo apt-get dist-upgrade`

*Before executing* `sudo apt-get install ffmpeg`

######Uncomplicated Firewall UFW

**7)**
<pre><code class="language-bash">apt-get install ufw
</code></pre>
**it is most likely to have it already installed so if you see it is already installed, check with following command, and/or enable it**

**8)**
<pre><code class="language-bash">ufw status
</code></pre>

**9)**
<pre><code class="language-bash">ufw enable
</code></pre>
**Type** `y` **hit Enter**

**10)**
<pre><code class="language-bash">sudo ufw allow ssh
</code></pre>

######Unzip

**11)**
<pre><code class="language-bash">apt-get install unzip
</code></pre>

######TMUX
**12)**
<pre><code class="language-bash">apt-get install tmux
</code></pre>
**Type** `y` **hit Enter**

######NOW WE NEED TO IMPORT SOME DISCORD CERTS
**13)**
<pre><code class="language-bash">mozroots --import --ask-remove --machine
</code></pre>

**14)**
<pre><code class="language-bash">certmgr --ssl https://gateway.discord.gg
</code></pre>

Type `yes` and hit Enter **(three times - as it will ask for three times)**


**15)**

Create a new folder “wizbot” or anything you prefer
<pre><code class="language-bash">mkdir wizbot
</code></pre>

**16)**

Move to “wizbot” folder (note `cd --` to go back the directory)
<pre><code class="language-bash">cd wizbot
</code></pre>

**NOW WE NEED TO GET WIZBOT FROM RELEASES**


Go to this link: https://github.com/Wizkiller96/WizBot-Updated/releases and **copy the zip file address** of the lalest version available,

it should look like `https://github.com/Wizkiller96/WizBot-Updated/releases/download/vx.xx/WizBot.vx.x.zip`

**17)**

Get the correct link, type `wget`, then *paste the link*, then hit **Enter**.
<pre><code class="language-bash">wget https://github.com/Wizkiller96/WizBot-Updated/releases/download/vx.xx/WizBot.vx.x.zip
</code></pre>
**^Do not copy-paste it**

**18)**

Now we need to `unzip` the downloaded zip file and to do that, type the file name as it showed in your screen or just copy from the screen, should be like ` NadekoBot.vx.x.zip`
<pre><code class="language-bash">unzip WizBot.vx.x.zip
</code></pre>
**^Do not copy-paste it**

######NOW TO SETUP WIZBOT

Open **CyberDuck**

Click on **Open Connection** (top-left corner), a new window should appear.

You should see **FTP (File Transfer Protocol)** in drop-down.

Change it to **SFTP (SSH File Transfer Protocol)**

Now, in **Server:** paste or type in your `Digital Ocean Droplets IP address`, leave `Port: 22` (no need to change it)

In **Username:** type `root`

In **Password:** type `the new root password (you changed at the start)`

Click on **Connect**

It should show you the new folder you created.

Open it.

######MAKE SURE YOU READ THE README BEFORE PROCEEDING

Copy the `credentials_example.json` to desktop

EDIT it as it is guided here: https://github.com/Wizkiller96/WizBot-Updated/blob/master/README.md

Rename it to `credentials.json` and paste/put it back in the folder. `(Yes, using CyberDuck)`

You should see two files `credentials_example.json` and `credentials.json`

Also if you already have wizbot setup and have `credentials.json`, `config.json`, `WizBot.sqlite`, and `"permissions" folder`, you can just copy and paste it to the Droplets folder using CyberDuck.

######TIME TO RUN

Go back to **PuTTY**, `(hope its still running xD)`

**19)**

Type/ Copy and hit **Enter**.
<pre><code class="language-bash">tmux new -s wizbot
</code></pre>
**^this will create a new session named “wizbot”** `(you can replace “wizbot” with anything you prefer and remember its your session name) so you can run the bot in background without having to keep running PuTTY in the background.`


<pre><code class="language-bash">cd wizbot
</code></pre>

**20)**

<pre><code class="language-bash">mono WizBot.exe
</code></pre>

**CHECK THE BOT IN DISCORD, IF EVERYTHING IS WORKING**

Now time to **move bot to background** and to do that, press **CTRL+B+D** (this will ditach the nadeko session using TMUX), and you can finally close PuTTY now.

**NOW YOU HAVE YOUR OWN WIZBOT**

######SOME MORE INFO (JUST TO KNOW):

-If you want to **see the sessions** after logging back again, type `tmux ls`, and that will give you the list of sessions running.

-If you want to **switch to/ see that session**, type `tmux a -t wizbot` (**wizbot** is the name of the session we created before so, replace **“wizbot”** with the session name you created.)

**21)**

-If you want to **kill** WizBot **session**, type `tmux kill-session -t wizbot`

######TO RESTART YOUR BOT ALONG WITH THE WHOLE SERVER (for science):
**22)**

Open **PuTTY** and login as you have before, type `reboot` and hit Enter.

######IF YOU WANT TO UPDATE YOUR BOT

**FOLLOW THESE STEPS SERIALLY**

**-21 OR 22**

**-19**

**-16**

**-17**

**-18**

**-20**

HIT **CTRL+B+D** and close **PuTTY**
Loading