Coder Social home page Coder Social logo

callocgd / gd-comment-bot-wrapper Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 49 KB

A Framework that builds geometry dash comments bots easily.

License: MIT License

Python 100.00%
daily-chat gdpy geometry-dash daily-chat-bot daily-chat-bot-with-commands

gd-comment-bot-wrapper's Introduction

GD Comment Bot Wrapper

My Super Secret Framework for building Geometry dash comment bots with commands inplace. At this point robtop has pretty much smothered the majority of my free proxies so I'm dumping the source code here to anyone who wishes to continue my legacy that I've pretty much left behind.

It includes a very friendly coding atmosphere not seen ever in GD Bot programming ever before

Note

  • Currently Not Working, Daily Level is already have trouble parsing from the string. Nekit, please fix your code for God's Sake.
  • I highly encourage you to fork this code off as there maybe some sneaky bugs that I didn't patch or could be easily executed better.
  • I'll make a new framework when nekit releases gdpy2 which he plans to make very soon. Hopefully he will add socks5 support.

Some Cleaver Examples include the following

from discord_webhook import AsyncDiscordWebhook
import json, random
from gd import CommentBanned, LevelComment
from dcbot import DCBot
WEBHOOK_LINK = "<your discord webhook>"

bot = DCBot("/")

@bot.on_comment_banned()
def on_comment_banned(ctx:DCBot, ban:CommentBanned):
    # Uh Oh...
    webhook = AsyncDiscordWebhook(
        url=WEBHOOK_LINK,
        content=f"@everyone The king is dead ;-; : [Banned] : ```json\n{json.loads(ban.__dict__)}```"
    )
    # Send our message back to discord
    await webhook.execute()

# The most basic command in the book....
@bot.command
async def diceroll(ctx:DCBot, comment:LevelComment)
    return await ctx.send(comment, f"your rolled a {random.randint(1,6)}")

Even when the bot becomes commentbanned it has a smart backup-system inplace that will immediately send a dm to the user instead so that the bot remains alive for as long as possible without failure. Special event callbacks like in discordpy as demonstrated above are also inplace to help with this.

To The Eldermods

I am not legally responsible for any damage caused by this code (SEE THE MIT LICENSE) or for any skid or developer who winds up using this framework weather that be for the purpose of good or entertainment (I sure hope people use this for good). I am not responsible for people using it for nefarious reasons. I have only implemented/dumped my code off here for educational purposes only, please take my words with a grain of salt.

gd-comment-bot-wrapper's People

Contributors

callocgd avatar

Stargazers

 avatar  avatar

Watchers

Lucian avatar  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.