Follow Kwoth on Twitter for updates. | Join Kwoth's Discord server if you need help. | Read the Docs for hosting guides. |
Before you continue, notice that this nadeko uses Microsoft SQL Server and you need to have your own SQL Server since heroku doesn't provide any. Why it uses MSSQL instead of the built-in SQLite? The answer is because of heroku's ephemeral filesystem.
Clone the repository
git clone -b master --recursive --depth 1 --progress https://github.com/ScarletKuro/NadekoBot.git
NB! Before you proceed, remove the .git folder from NadekoBot folded after u clone the repository.
- If you don't have any SQL Server, you can temporary use gearhost. Remember that it has limited data-size.
- Open the Microsoft SQL Server Managment Studio.
- Connect to your SqlServer databse.
- Create a new database, for example db_Nadekobot.
- Execute the SqlServer.sql script that locates in scheme folder.
- Edit the nadeko_run.sh file in script folder.
Change the variables below
clientid=""
botid=""
token=""
ownerid=""
googleapi=""
lolapikey=""
mashapekey=""
osu=""
scid=""
connection="Data Source=;Initial Catalog=;User ID=;Password="
NB! If you are using a domain name to connect to database take a note that some domain names may require a www prefix and some doesn't to connect to the database. For example my college SQL Server needs a www before the domain name and the gearhost's doesn't. - Move the nadeko_run.sh and Procfile to the root folder.(they are in the script folder)
-
Log in your heroku account
-
Create a new app
-
NOW IT'S IMPORTANT that you download the Heroku CLI, because heroku now creating a heroku-16 stack app by default, and the dotnetcore doesn't work proper on it. After you installed the application and created app on herokus webpage, open the cmd and enter
heroku login
#enter your heroku credentials, after that use
heroku stack:set cedar-14 -a your_application_name
#it will rollback the heroku-16 back to cedar-14 stack.
Now we should be fine. -
Add the buildpacks on heroku website in your application settings
https://github.com/ScarletKuro/nadeko-dotnetcore-buildpack
https://[email protected]/ingmferrer/opus-buildpack.git
https://github.com/challengee/heroku-buildpack-libsodium.git
https://github.com/ScarletKuro/heroku-buildpack-ffmpeg-static
-
Deploy now the Nadeko using DropBox, Heroku CLI or Github
-
Turn the Dyno(in the overview tab click Configure Dyno) on after the build is complete
-
Enjoy!