Hosting Discord Bot on github

百般思念 提交于 2021-02-11 04:30:51

问题


I am currently developing a discord bot and was planning to host it somewhere but I haven't found an option yet. So, I decided to look around and I encounter this question on StackOverflow which claimed that it is actually possible (Can you host a discord bot with github?) Does anyone knows the detail on this? Like, how to actually host it there, and where I can find the documentation about it? Will it work for any programming languages?


回答1:


I know this is old, but people still have problems with the host choice, this answer is for these people.


Github by itself CAN'T host Discord bots! But you can export it to another platforms, here is some of them:


Heroku

Heroku is used by the most Developers in Discord. You can also export from the command-line Git.

This Medium article is a good introduction to Heroku. But you can also check this.

Repl.it

If you like 'open-source-bots' host, then you can use Repl.it, it hiddens the `.env` file, and you can export from Github.

You can learn how to host in JS and Python in its forum.

PythonAnywhere

This is an less-used tool, with it you can emulate Bashes and Python consoles.

You can run scripts too, but i didn't find any tutorial explaining how-to run Discord bots.


So, it's all, bye!




回答2:


Hello there

I personally use repl.it. Here are some tips before doing this Store all of your private stuff in ur .env Unless u buy hacker plan, people can see ur code except for .env, keep that in mind (they will not find it publicly, though)

So how I keep it online is making a simple hello world nodejs website, then the replit link will show on the right, copy that. Go to uptimerobot.com and create an account Click add monitor Add ur url. Then click add monitor! Go to comments below for help!



来源:https://stackoverflow.com/questions/65622990/hosting-discord-bot-on-github

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!