-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moderation Commands (Discord bot, DSharpPlus) #2
Comments
Are you using microsoft bot framework? What are the things I should be aware of before I can begin? I'm kinda new to bots but would like to try and get better. |
@DesmondANIMUS This is the library that the bot is built upon: https://github.com/NaamloosDT/DSharpPlus Documentation: https://dsharpplus.emzi0767.com |
Hey, when I pull the solution and build it, I get these errors: "Unable to find package DSharpPlus.CommandsNext with version (>= 3.1.3-beta-00273)" Any idea? Edit: Found out you I needed to add the nightly builds myget source: https://www.myget.org/F/dsharpplus-nightly/api/v3/index.json It is working now! |
Could you give some more information on how to test this bot? |
To get the NuGet packages, simply use If you run the bot with no arguments it'll create a settings.json file with sample data, then you replace the token with a Discord bot token. Follow the instructions on the application page and on this handy page to add your instance of the bot to your own guild, and then use |
I get a nullreference when I start up on this line t.Namespace.StartsWith("ModCore") in the AsyncListenerHandler |
@Vetsoo Where is that line at exactly? @DesmondANIMUS The Microsoft Bot Framework isn't used in this project. as @Yucked said, this project uses DSharpPlus. It is a library for writing aps with the Discord API. Sorry for being inactive, I was at work c: |
public static void InstallListeners(DiscordClient client, Bot bot)
|
Do you have a token setup in settings.json? |
Yes I do. My bot is also added in my server. Do I need anything else? |
I'm taking a look at it. Errors for me as well. |
@Vetsoo The latest commit fixes it. Please pull the new version off of GitHub c; |
No more responses. Guess it's time to close this one. |
We need way more commands for moderation. Creating a single command is good enough for a PR to be accepted ;)
The text was updated successfully, but these errors were encountered: