Skip to content

MPBey/SimpleDiscordBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleDiscordBot

This is a simple discord bot that counts the number of messages each user sends and saves it to a database using nodejs, postgres, and javascript. This uses the discord.js-commando package rather than just discord.js. This was developed on Debian.


If you are new to javascript, databases, ect. I have saved the process I went through on separate branches. The readme's on each branch are a mix of personal notes and a tutorial you are welcome to use.

Cloning all branches

If you clone the repository you won't have all the branches, here is how to get all of them:

git clone https://github.com/duffcon/SimpleDiscordBot.git
git branch -a
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
    git branch --track "${branch##*/}" "$branch"
done

git fetch --all
git pull --all

References

http://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-in-git

About

Discord Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%