Git Product home page Git Product logo

discord-stonker-bot's Introduction

Hello, I'm Jacky πŸ‘‹πŸΌ

Welcome to my GitHub! Here lies my coding territory, where I unveil my open-source solutions to real-world challenges.

I am a self-taught web developer striving to evolve into a top-notch software engineer. Proudly born, raised, and residing in the vibrant city of New YorkπŸ—½.

If you would like to learn more about me, read my biography!

Language Palette πŸ‘¨πŸ»β€πŸ’»

TypeScript HTML CSS PHP Shell Java C++ Python

My Tools of the Trade πŸ› οΈ

WebStorm PhpStorm IDEA CLion PyCharm Xcode Android Studio Tower Postman Sketch Adobe Photoshop

Things I Like πŸ€“

Homebridge Synology pfSense Ubiquiti Plex Tesla WordPress WP Engine Debian Rockstar Games DJI Costco

A Sea of Hidden Scripts πŸ’Ž

Gem What's This?
AppleScript My personal stash of AppleScript goodies. From quick commands to workflow streamlining to handy scripts that just make life easier.
Conventions Dive into the inner workings of my coding philosophy. It's not just about the code; it's about the why behind it all. Explore the dos, don'ts, and everything in between.
Games Discover a treasure of games that I've written for fun and through school assignments. I'm not much of a gamer, but here it is!
Snippets A collection of little code pieces I've crafted over time. Whether it's solving a tricky problem or just experimenting with new ideas, you'll find them all here.

Support My Work πŸŽ—οΈ

If you appreciate my work and find value in my open-source projects, I welcome you to express your support!

By supporting me, you not only enable me to sustain this journey but also empower me to dedicate additional time to help you resolve environment-specific issues for the projects I've authored.

Sponsor Donate

discord-stonker-bot's People

Contributors

mrjackyliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-stonker-bot's Issues

TSError: Unable to compile TypeScript

Describe the bug:

What do you think the problem relates to?

Steps to reproduce the bug:

  1. Run Stonker Bot with npm start

Expected behavior:

The bot would start and be online on Discord

Logs related to this bug:

/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:750
    return new TSError(diagnosticText, diagnosticCodes);
           ^
TSError: β¨― Unable to compile TypeScript:
src/modules/anti-raid.ts:1:43 - error TS2724: '"discord.js"' has no exported member named 'TextBasedChannels'. Did you mean 'TextBasedChannel'?

1 import { GuildMember, PartialGuildMember, TextBasedChannels } from 'discord.js';
                                            ~~~~~~~~~~~~~~~~~
src/modules/anti-raid.ts:172:15 - error TS7006: Parameter 'error' implicitly has an 'any' type.

172     }).catch((error) => generateLogMessage(
                  ~~~~~

    at createTSError (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:750:12)
    at reportTSError (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:754:19)
    at getOutput (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:941:36)
    at Object.compile (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:1243:30)
    at Module.m._compile (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:1370:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Object.require.extensions.<computed> [as .ts] (/home/pi/Documents/discord-stonker-bot/node_modules/ts-node/src/index.ts:1374:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  diagnosticText: `\x1B[96msrc/modules/anti-raid.ts\x1B[0m:\x1B[93m1\x1B[0m:\x1B[93m43\x1B[0m - \x1B[91merror\x1B[0m\x1B[90m TS2724: \x1B[0m'"discord.js"' has no exported member named 'TextBasedChannels'. Did you mean 'TextBasedChannel'?\n` +
    '\n' +
    "\x1B[7m1\x1B[0m import { GuildMember, PartialGuildMember, TextBasedChannels } from 'discord.js';\n" +
    '\x1B[7m \x1B[0m \x1B[91m                                          ~~~~~~~~~~~~~~~~~\x1B[0m\n' +
    "\x1B[96msrc/modules/anti-raid.ts\x1B[0m:\x1B[93m172\x1B[0m:\x1B[93m15\x1B[0m - \x1B[91merror\x1B[0m\x1B[90m TS7006: \x1B[0mParameter 'error' implicitly has an 'any' type.\n" +
    '\n' +
    '\x1B[7m172\x1B[0m     }).catch((error) => generateLogMessage(\n' +
    '\x1B[7m   \x1B[0m \x1B[91m              ~~~~~\x1B[0m\n',
  diagnosticCodes: [ 2724, 7006 ]
}

Sweep for banned avatars after join

The Anti-raid for avatars works when they have the matching avatar when joining the server, but it does not ban the user if you change the avatar after joining. It would be nice to have a sweep feature that scans for when the restricted avatars are used unless I'm missing something.

Turn off/on features

Got the bot up and running. Now I'm having an issue of it sending DMs to everyone about posting affiliate links. Every time I post it gives me the gwei for gas prices and top tickers. I might be missing something in the documentation, but I think it would be helpful if you had an option to turn those features off.

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.