Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

Hosting Discord Bot on github

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?

question from:https://stackoverflow.com/questions/65622990/hosting-discord-bot-on-github

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...