rankbot

command module
v0.0.0-...-776f657 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 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

rankbot

Very simple rank bot for Discord channels.

This is a fork. The original project is:

https://github.com/AeronIkarus/rankbot

You can list changes with git shortlog.

Why?

In some channels you get some experience points for every message you send.

Install

go get github.com/giucal/rankbot

Usage

Usage of rankbot:
  -chan string
    	channel to join
  -del
    	delete every message as soon as it's been sent
  -email string
    	account email
  -guild string
    	guild (server) to join
  -idiom string
    	file containing a set of messages
  -int duration
    	interval between messages (default 1m0s)
  -mean-delay duration
    	mean additional delay
  -msg string
    	message to be sent (default "_")
  -pass string
    	account password
  -runtime duration
    	running time

Say we want to send messages to the "random" channel on the "Yellow Team" server. We can get away with the following invocation:

rankbot -email user@example.com \
        -pass password          \
        -guild 'Yellow Team'    \
        -chan random

This will send a message containing "_", every minute, until terminated.

To send a custom message:

-msg "Hello from rankbot"

To pick messages randomly from the lines of a file:

-idiom sayings.txt

To delete messages after sending them:

-del

To choose a different interval between messages:

-int 1s       # A message per second.
-int 1h       # A message per hour.
-int 2m30s    # A message every 2 minutes and a half.

To further delay messages by a random amount of seconds:

-mean-delay 5m    # The average delay (added to the interval).

To set a run time, after which rankbot will terminate:

-runtime 10h      # Run for 10 hours before exiting.

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