Releases: michael-fa/DiscordAMX_net3.1
(NET6) DiscordAmx 2 - v0.0.1
This is from the new repo, but in case to make it noticeable to everyone I publish that new version here too!
THIS IS FOR NET6 !
The new repo can be found here https://github.com/michael-fa/DiscordAMX
PREVIEW 3 (DCAMX 1.1) | Build 205
Added many new functions, such as the EmbedBuilder script-side and fixed a lot of bugs.
native DC_NewEmbedBuilder(title[], text[]); //THIS FUNCTION WORKS FOR THREADS, DMs and TEXT CHANNELS!
native DC_SetEmbedAuthor(embedid, author[], url[] = '\0');
native DC_SetEmbedFooter(embedid, footer_text[], icon_url[] = '\0');
native DC_SetEmbedImage(embedid, img_url[]);
native DC_SetEmbedUrl(embedid, url[]);
native DC_SetEmbedColor(embedid, DISCORD_COLORS:color);
native DC_AddEmbedText(embedid, title[], text[], bool:inline = false);
native DC_ToggleEmbedTimestamp(embedid);
native DC_SendEmbed(embedid, guildid, channelid[]);
native DC_UpdateEmbed(embedid);
And a new Plugin system that is fully working!
⚠️ New way of token handling
To add your app token to the bot software, please insert the token in a file called "bot.token" inside discordamx' main folder.
BETA 1.0 | Build 183
This should hopefully be working as an 24/7 bot application within its current abilities.
Any testers or test results are highly appreciated!
📄 ✏️
- Fixed a ton of bugs
- Thread support
- Embedded Images (more on that in the next release!)
- Fully working amx32 float support (you need .NET SDK 6 and C++ Redist)
- Added plugin support (for .NET developers!)
The way the bot now authenticates via your application bot token has been changed.
Instead of calling the first script's main() and expecting DC_SetBotToken to be called there, the whole
program now loads the bot token from an file in it's core directory, bot.token
.
Just paste your bot token in there from now on. !
📣 Please visit the Wiki for more!
ALPHA 002 (Scripter's preview) | Build 117
This release is meant for PAWN Scripters to get an idea behind the contect of DiscordAMX.
This project needs Windows and AT LEAST .NET Runtime 5.0.11 to run!
📌 NOTE: 📌 Read the Wiki
IMPORTANT
Restructured the whole core-codel, cleaned up a bit.
Added new internal log system. (errors, warnings, etc.)
Script/User stuff Added
- Added console commands: - Type
help
in console!- Added DM Channel functions and callbacks
- Ability to create and delete guild channels (text only)
- OnHeartbeat now passes a ping to the script.
- Added native DC_FindChannel
- Added DC_GetMemberCount, DC_GetGuildCount
- Added OnConsoleInput
- Native (INI) File Support for scripts!
And some bugs are fixed/added.
ALPHA 001 (Scripter's preview) | Build 9
This release is meant for PAWN Scripters to get an idea behind the contect of DiscordAMX.
This project needs Windows and AT LEAST .NET Runtime 5.0.11 to run!
📌 NOTE: 📌 Read the Wiki
IMPORTANT CHANGE: All memberid[] parameters are now changed to INTEGER! remove [] from each memberid in methods!
Added
- OnMemberJoin
- OnMemberLeave
- OnMessage
- OnCommand
- OnReactionAdded/Removed
- OnMessageDeleted
- GetMemberName/DisplayName/Discriminator
- DC_SetGuild(id[]) (required to function!) -> set this in main() of your script.**
How to get started (WINDOWS ONLY)
- Open up the folder 'Editor', run pawno.exe as Administrator!
- Once in pawno, open the discordamx_example.pwn File located inside the 'Editor' folder
- Edit the script (change BOT_TOKEN and EXAMPLE_CHANNEL to your own ones and test)
- Compile with F5 (make sure the include folder with all inludes in in 'Editor' folder!)
- Grab the .AMX file created in 'Editor' folder and move it to 'Server/Scripts/'
IMPORTANT
Rename the .AMX file that the server loads to main.amx