2016-10-09 22:44:50 +00:00
###Setting up your Credentials
If you do not see `credentials.json` you will need to rename `credentials_example.json` to `credentials.json` .
**This is how the unedited credentials look:**
```json
{
2016-10-21 16:03:23 +00:00
"ClientId": 123123123,
"BotId": null,
2016-10-09 22:44:50 +00:00
"Token": "",
"OwnerIds": [
2016-10-21 16:03:23 +00:00
0
2016-10-09 22:44:50 +00:00
],
2016-10-21 16:03:23 +00:00
"LoLApiKey": "",
"GoogleApiKey": "",
2016-10-09 22:44:50 +00:00
"MashapeKey": "",
2016-10-21 16:03:23 +00:00
"OsuApiKey": "",
"SoundCloudClientId": "",
2016-10-25 15:13:36 +00:00
"CarbonKey": "",
2016-10-21 16:03:23 +00:00
"Db": null,
2016-11-08 20:34:12 +00:00
"TotalShards": 1
2016-10-09 22:44:50 +00:00
}
```
####Required Parts
2016-10-25 15:13:36 +00:00
- **Token** - Required to log in. Refer to this [guide ](http://discord.kongslien.net/guide.html )
- **OwnerIds** - Required for the **Owner-Only** commands. Seperate multiple Id's with a comma.
- **BotId** - Required for custom reactions to work.
- **Important : Bot ID and Client ID will be the same in newer bot accounts due to recent changes by Discord.**
2016-10-09 22:44:50 +00:00
_BotId and the OwnerIds are **NOT** the names of the owner and the bot. If you do not know the id of your bot, keep the two random numbers in those fields and
run the bot then do `.uid @MyBotName` - this will give you your bot_id.
Do the same for yourself with `.uid @MyName` Put these numbers in their respective field of the credentials._
Setting up your API keys
====================
####This part is completely optional, **However it is necessary for music to work properly**
2016-10-25 15:13:36 +00:00
- **GoogleAPIKey** - Required for Youtube Song Search, Playlist queuing, and URL Shortener. `~i` and `~img` .
2016-11-08 23:42:48 +00:00
You can get this api Key [here ](https://console.developers.google.com/apis )
2016-10-25 15:13:36 +00:00
- **SoundCloudClientID** - Required to queue soundloud songs from sc links.
2016-11-08 23:42:48 +00:00
You will need to create a new app [here ](http://soundcloud.com/you/apps ). **Please note you must be logged into SoundCloud**
2016-10-25 15:13:36 +00:00
- Simply click Register a new application and enter a name.
- Copy the Client ID and click "save app" then paste the Client Id it into your `credentials.json`
- **MashapeKey** - Required for Urban Disctionary, Hashtag search, and Hearthstone cards.
2016-11-08 23:42:48 +00:00
You need to create an account on their [api marketplace ](https://market.mashape.com/ ), after that go to `market.mashape.com/YOURNAMEHERE/applications/default-application` and press **Get the keys** in the top right corner.
2016-10-25 15:13:36 +00:00
- Copy the key and paste it into `credentials.json`
- **LOLAPIKey** - Required for all League of Legends commands.
2016-11-08 23:42:48 +00:00
You can get this key [here ](http://api.champion.gg/ )
2016-10-25 15:13:36 +00:00
- **OsuAPIKey** - Required for Osu commands
2016-11-08 23:42:48 +00:00
You can get this key [here ](https://osu.ppy.sh/p/api ) **You will need to log in and like the soundcloud it may take a few tries**
2016-10-25 15:13:36 +00:00
- **CarbonKey** -This key is for Carobnitex.net stats.
2016-11-08 23:42:48 +00:00
Most likely unnecessary **Needed only if your bot is listed on Carbonitex.net**
2016-10-21 16:03:23 +00:00
Additional options
====================
2016-10-25 15:13:36 +00:00
- **TotalShards** - Required if the bot will be connected to more than 2500 servers
2016-11-09 00:32:47 +00:00
Most likely unnecessary to change until your bot is added to more than 2000 servers
2016-10-25 15:13:36 +00:00
[//]: # (- **Db** - Allows for advanced database configuration )
[//]: # ( - Leave this with the `null` value for standard operation - change this to `examples` to [This is only a comment so doesn't need proper detail])
2016-10-21 16:03:23 +00:00
2016-10-09 22:44:50 +00:00
Config.json
===========
2016-12-02 00:54:23 +00:00
`config.json` is now removed with the addition of `NadekoBot.db` so if you have Nadeko 0.9x follow the [upgrading guide ](http://nadekobot.readthedocs.io/en/latest/guides/Upgrading%20Guide/ )
2016-10-09 22:44:50 +00:00
2016-12-02 00:54:23 +00:00
DB files
========
2016-12-02 02:24:19 +00:00
Nadeko uses few db files in order to open the database
- `NadekoBot\src\NadekoBot\bin\Release\netcoreapp1.0\data\NadekoBot.db` (1.0)
- `data/NadekoBot.sqlite` (0.9x)
you will need [DB Browser for SQLite ](http://sqlitebrowser.org/ ) to make changes to any settings you want and click on "write changes" at the top.
2016-12-02 02:22:32 +00:00
![nadekodb ](https://cdn.discordapp.com/attachments/251504306010849280/254067055240806400/nadekodb.gif )
2016-11-07 23:39:19 +00:00
[CleverBot APIs]: https://cleverbot.io/keys