Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Mar 5, 2021
0 parents commit 31d824b
Show file tree
Hide file tree
Showing 15 changed files with 1,068 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

*.lnk
audio_cache/
.idea/
config.yml
dist/
download/
*.db
YADMB
main
44 changes: 44 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
before:
hooks:
- go mod download
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: arm64
- goos: darwin
goarch: arm
archives:
- format: zip
replacements:
'386': i386
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
files:
- README.md
- LICENSE
- example_config.yml
- website/*
checksum:
name_template: checksums.txt
snapshot:
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: go

go:
- master
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Manuel Raimo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# messageCounter
[![Go Report Card](https://goreportcard.com/badge/github.com/TheTipo01/messageCounter)](https://goreportcard.com/report/github.com/TheTipo01/messageCounter)
[![Build Status](https://travis-ci.com/TheTipo01/messageCounter.svg?branch=master)](https://travis-ci.com/TheTipo01/messageCounter)

messageCounter - a discord bot to track messages and ghostpings

## Features

- Show ghostpings on a separate webpage
- Sends random message every monday from a certain channel in a certain guild
- Send a nice as the message number 69420

For the random message part, you need to add a row to the config table with the server ID (guildID), the channel from where to get messages (channelID), and where to send the random message (channelToID). You can also add a offset for the message count part of the bot, as sometimes the numbers that the bot get and the one that discord returns are different.

## Install
Get a release for your system in the [release](https://github.com/TheTipo01/messageCounter/releases) tab, modify the provided `example_config.yml`, deploy the website on your favourite webserver, and you're good to go!
Loading

0 comments on commit 31d824b

Please sign in to comment.