Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Vedza/NitroSniperGo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.3
Choose a base ref
...
head repository: Vedza/NitroSniperGo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 10, 2021

  1. Fix max invite

    Vedza committed Jan 10, 2021
    Copy the full SHA
    f88b69d View commit details
  2. Delete LICENSE

    Vedza authored Jan 10, 2021
    Copy the full SHA
    7402894 View commit details
  3. Create LICENSE

    Vedza authored Jan 10, 2021
    Copy the full SHA
    3a7fb64 View commit details

Commits on Jan 11, 2021

  1. Fix max invite

    Vedza committed Jan 11, 2021
    Copy the full SHA
    e040ec2 View commit details
  2. Copy the full SHA
    3f974df View commit details
  3. Add main_sniper feature

    Vedza committed Jan 11, 2021
    Copy the full SHA
    aadd9a6 View commit details
  4. Update README.md

    Vedza authored Jan 11, 2021
    Copy the full SHA
    cfd47b0 View commit details
  5. Add release script

    Vedza committed Jan 11, 2021
    Copy the full SHA
    5b714aa View commit details
  6. Copy the full SHA
    7db0b3e View commit details
  7. Update release script

    Vedza committed Jan 11, 2021
    Copy the full SHA
    ddcbd35 View commit details
  8. Update README.md

    Vedza authored Jan 11, 2021
    Copy the full SHA
    fe4a0f3 View commit details
  9. Update Nitro webhook message

    Vedza committed Jan 11, 2021
    Copy the full SHA
    936cee0 View commit details
  10. Copy the full SHA
    09efec0 View commit details
  11. Copy the full SHA
    cb585e7 View commit details
  12. New webhook format

    Vedza committed Jan 11, 2021
    Copy the full SHA
    2c9e9ab View commit details
  13. Update settings.json

    Vedza authored Jan 11, 2021
    Copy the full SHA
    52d0151 View commit details

Commits on Jan 12, 2021

  1. Privnote webhook mistype

    Vedza committed Jan 12, 2021
    Copy the full SHA
    69dfc0f View commit details
  2. Update release script

    Vedza committed Jan 12, 2021
    Copy the full SHA
    3bcf7b2 View commit details
  3. Update release script

    Vedza committed Jan 12, 2021
    Copy the full SHA
    9a35155 View commit details
  4. Update screenshot

    Vedza committed Jan 12, 2021
    Copy the full SHA
    5fdb93c View commit details
  5. Update screenshot

    Vedza committed Jan 12, 2021
    Copy the full SHA
    9b94dae View commit details
  6. Delete screenshot.png

    Vedza authored Jan 12, 2021
    Copy the full SHA
    618b886 View commit details
  7. Update screenshot

    Vedza committed Jan 12, 2021
    Copy the full SHA
    a6cf802 View commit details
  8. Update screenshot

    Vedza committed Jan 12, 2021
    Copy the full SHA
    6a21c6f View commit details
  9. Add .travis.yml

    Vedza committed Jan 12, 2021
    Copy the full SHA
    d5c94be View commit details
  10. Merge pull request #110 from Vedza/travis_ci

    Add .travis.yml
    Vedza authored Jan 12, 2021
    Copy the full SHA
    0948691 View commit details
  11. Update README.md

    Vedza authored Jan 12, 2021
    Copy the full SHA
    3eadbe6 View commit details

Commits on Jan 13, 2021

  1. Reformat settings

    Vedza committed Jan 13, 2021
    Copy the full SHA
    8e05118 View commit details
  2. Copy the full SHA
    d84131c View commit details
  3. Merge pull request #113 from Vedza/travis_ci

    New json format + whitelist & blacklist
    Vedza authored Jan 13, 2021
    Copy the full SHA
    34930e6 View commit details
  4. Update README.md

    Vedza authored Jan 13, 2021
    Copy the full SHA
    222b4ce View commit details
  5. fix invite delay

    Vedza committed Jan 13, 2021
    Copy the full SHA
    fa30204 View commit details
  6. Update README.md

    Vedza authored Jan 13, 2021
    Copy the full SHA
    fa7da82 View commit details
  7. Update README.md

    Vedza authored Jan 13, 2021
    Copy the full SHA
    72a06d5 View commit details
  8. Update settings.json

    Vedza authored Jan 13, 2021
    Copy the full SHA
    1992550 View commit details
  9. Update settings.json

    Vedza authored Jan 13, 2021
    Copy the full SHA
    b993ba5 View commit details
  10. Fix channel giveaway webhook

    Vedza committed Jan 13, 2021
    Copy the full SHA
    ec86062 View commit details
  11. Create FUNDING.yml

    Vedza authored Jan 13, 2021
    Copy the full SHA
    73b7423 View commit details
  12. Update README.md

    Vedza authored Jan 13, 2021
    Copy the full SHA
    60e450b View commit details
  13. Fix mistype privnote

    Vedza committed Jan 13, 2021
    Copy the full SHA
    220a668 View commit details
  14. Copy the full SHA
    53ffb9d View commit details

Commits on Jan 14, 2021

  1. Bot only giveaways

    Vedza committed Jan 14, 2021
    Copy the full SHA
    8dfbf75 View commit details
  2. Update release script

    Vedza committed Jan 14, 2021
    Copy the full SHA
    524ab86 View commit details
  3. Update README.md

    Vedza authored Jan 14, 2021
    Copy the full SHA
    0e7864a View commit details

Commits on Jan 16, 2021

  1. Copy the full SHA
    f08b79e View commit details
  2. Copy the full SHA
    d9b6b28 View commit details
  3. Invite max fixed

    Vedza committed Jan 16, 2021
    Copy the full SHA
    7f72b72 View commit details
  4. Fix whitelist & blacklist giveaway

    Blacklist w/ "bot" in it didn't work because of "bot":true
    Vedza committed Jan 16, 2021
    Copy the full SHA
    da8c27c View commit details
  5. Add delay print

    Vedza committed Jan 16, 2021
    Copy the full SHA
    81b7497 View commit details
  6. Add delay print

    Vedza committed Jan 16, 2021
    Copy the full SHA
    6499df5 View commit details
Showing with 1,647 additions and 653 deletions.
  1. +12 −0 .github/FUNDING.yml
  2. +29 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +94 −0 .github/workflows/docker-publish.yml
  4. +1 −1 .gitignore
  5. +2 −0 .replit
  6. +7 −0 .travis.yml
  7. +19 −0 Dockerfile
  8. +339 −21 LICENSE
  9. +97 −41 README.md
  10. +44 −0 crypto.go
  11. +158 −0 gift.go
  12. +146 −0 giveaways.go
  13. +4 −2 go.mod
  14. +92 −0 go.sum
  15. +93 −0 joiner.go
  16. +102 −0 privnote.go
  17. +24 −0 release.sh
  18. BIN screenshot.png
  19. +44 −24 settings.json
  20. +131 −564 sniper.go
  21. BIN sound.mp3
  22. +209 −0 webhooks.go
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://www.buymeacoffee.com/Vedza']
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Please check previous issues before opening a new one as well as [Know Issues](https://github.com/Vedza/NitroSniperGo#known-issues)**

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
94 changes: 94 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
push:
branches: [ "master" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "master" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0
with:
cosign-release: 'v1.11.0'


# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max


# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
.idea/NitroSniperGo.iml
.idea/vcs.xml
.idea/workspace.xml
NitroSniperGo_build_mac.zip
NitroSniperGo_build_*
NitroSniperGo_build_mac/NitroSniperGo
NitroSniperGo_build_mac/token.json
NitroSniperGo_build_win64.zip
2 changes: 2 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
language = "go"
run = "go build && ./NitroSniperGo"
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: go
go:
- 1.14.x
env:
- GO111MODULE=on
before_install:
- sudo apt-get install libasound2-dev
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:alpine3.14 AS builder

WORKDIR app

COPY . .

RUN apk add --no-cache gcc libc-dev alsa-lib-dev
RUN go mod download \
&& go build

FROM alpine:3.14 AS final

WORKDIR app

COPY --from=builder /go/app/NitroSniperGo /app/NitroSniperGo

RUN apk add --no-cache alsa-lib-dev

CMD ["/app/NitroSniperGo"]
Loading