Git Product home page Git Product logo

n7tr / dynamic-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 150 KB

A powerful Discord nuke bot written on Go

License: GNU General Public License v3.0

Go 99.57% Dockerfile 0.43%
discord discord-bot discord-nuke-bot discord-nukebot discord-nuker discord-nuker-bot discordgo discord-crash discord-crash-bot discord-crashbot discord-crasher discord-raid-bot discord-raid-bots discord-wizz discord-wizzer discord-wizzing

dynamic-discord-bot's Introduction

Athanatos Discord Bot

A powerful Discord nuke bot written on Go

Big thanks to morg

for code improvements

.env file

There's many variables such as

{
    BOT_TOKEN: bot's token
    BOT_OWNER_ID: your id
	
    MASS_BAN: true or false

    WEBHOOK_URL: Webhook's URL
    AVATAR_URL: avatar url for webhook

	PREFERRED_LOCALE: check list of locales

    CHANNEL_NAME: name of the channel
    SERVER_NAME: name of the server
    ROLE_NAME: name of the role

    EMBED_TITLE: Embed's title
    EMBED_DESCRIPTION: Embed's description

}

All variables have a string data type. Only the MASS_BAN variable has two possible values - true and false. Write them with a lowercase letter.

Code Structure

All bot's functions are in core folder

main.go & connector.go

main.go - starts the bot and ConnectAll handler from connector.go


connector.go - runs bot commands from commands folder

sendhttp.go

This file is located in src/core/requests and helps to send http requests to Discord API easily

smooth.go

This file is located in src/core/requests and helps to avoid rate-limits

queue.go

This function is responsible for creating a nuke queue on the server

Commands

	The main command (.start) starts the nuking process. 
	.leave is for leave the server immediately.
	.ban_all is for ban everyone from the server.
    .overcharge is for leave every server immediately. It works if your ID is the value of BOT_OWNER_ID variable. In other cases it will not work.
	.bypass - use it when Athanatos is located on the server with Security and other anti nuke bots.

Installation guide

	1. Clone or download the repository source code
	2. Install golang
	3. Go to src folder
	4. Change values in .env
	5. Run go build Athanatos and then ./Athanatos or double-click the executable named Athanatos

Bypass Anti Nuke bots

Yes, Athanatos can bypass Anti Nuke bots like Security, Wick and other. Use .bypass command for this.

Where to host?

We recommend you to use fl0.com, back4app.com, koyeb.com and render.com. They're free and there you can host Athanatos and other discord bots. More information about other hostings are here

Deploy guide

First of all, copy all source code to your private repository. Then create an account on railway.app via github. Use Dockerfile for quick deployment. Railway.app is one of the best free hosting provider, where you don't need to add http server to your bot for 100% uptime.

Dockerfile example

# For deployment on railway.app
FROM golang:latest

WORKDIR /

COPY . .

RUN go build Athanatos

CMD [ "./Athanatos" ]
# For deployment on render.com and others
FROM golang:latest

WORKDIR /

COPY . .

RUN go build Athanatos

EXPOSE 8080

CMD [ "./Athanatos" ]

If you want to deploy your fork on render.com, add code snippet bellow to main.go

// imports
import (
	"fmt"
	"io"
	"log"
	"net/http"
	"os"
	"os/signal"
	"syscall"
	"time"

	"github.com/bwmarrin/discordgo"
	"github.com/joho/godotenv"
)

//starts http server
func main() {
	go func() {
		http.HandleFunc("/", getRoot)
		err := http.ListenAndServe(":8080", nil)
		if err != nil {
			log.Fatal(err)
		}
	}()

}

func getRoot(w http.ResponseWriter, r *http.Request) {
	fmt.Printf("got / request\n")
	io.WriteString(w, "Athanatos is at render.com now.. ๐Ÿš€\n")
}

dynamic-discord-bot's People

Contributors

n7tr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.