pepspointbot_go

command module
v0.0.0-...-52f4f4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

PepsPoints

A discord bot written in GoLang that handles a servers points

Build Status

Release History

  • 0.0.1
    • Work in Progress

Meta

Sophie https://github.com/Druue

Testing

  1. have a postgres database ready
  2. the database structure is described in db.go the top of https://github.com/Druue/PepsPointBot_Go/blob/master/db.go
  3. have a discord bot
  4. clone it
  5. create a file in the root folder called SECRET.go (actually you can call it whatever you want, but with SECRET.go it's already gitignored)
  6. write stuff like postgres data and discord token in there, it should look something like this
package main

var SECRET = &Secret{
	DISCORD_TOKEN: "<token>",
	DB_HOST: "localhost", //or something else
	DB_NAME: "PepsPointsBot", //or whatever your database name is called
	DB_PORT: "5432", //this is just the standard postgres port
	DB_PASSWORD: "super_secure_password",
	DB_USER: "super_secure_user",
}

TODO

  • ?whois command, that will parse the user given and return the user
  • "Maybe make it so that if there's two Emilies, it defaults to the one with a set nickname, and if someone has the same nick, then inform the user that the must specify which person they meanLike .givepoints Emilie(0) or .givepoints Emilie(1)", from Emilie
  • @ the bot is a valid prefix

Contributing

  1. Fork it (https://github.com/{usr}/{proj_name}/{fork})
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git add {files} && git commit)
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL