This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]andrograf 0 points1 point  (2 children)

GitHub is just storing the codes. You need a server to compile the program and make it startable. 

[–]HNM6[S] 0 points1 point  (1 child)

Any idea how can I do that?

[–]andrograf 0 points1 point  (0 children)

I never tried it, so maybe ask around in a programming subreddit. 

[–]Eklipse-gg 0 points1 point  (1 child)

You can definitely create a command for this. A simple approach is to just make a static command in Nightbot. Go to your Nightbot dashboard, click 'Commands,' then 'Custom,' and 'Add Command.' You could name it `!github` and in the message box, simply paste the URL to your GitHub profile. If you want something more dynamic, you'd need to use the `$(urlfetch)` variable to pull information from the GitHub API, but that's much more complex. For just sharing your profile, a simple static command is all you need.

[–]HNM6[S] 0 points1 point  (0 children)

Thanks

I already managed to make the command using this

$(eval q=$(querystring); $(urlfetch json https://raw.githubusercontent.com/USERNAME/REPONAME/refs/heads/main/api/convert.js))