Skip to content

Getting Started

toketwo edited this page May 5, 2024 · 24 revisions

How to run DiscordAMX

  • First download the latest release of DiscordAMX.
  • Make sure you have .NET Runtime 6 installed (no matter what OS.)
  • To have ruled out any error, since amx is a C++ library, make sure you have Visual C++ 2015-2019 installed (yes, all of them!)
  • Create or manage your Discord Bot (click for context)
  • Insert the token in the discordamx.properties file.
  • Get started with scripting, setup the Pawn toolkit, install it on your computer you want to script on. alt_text
  • Using your own or a script that's provided by the download package itself, you are now able to run the discord bot.
    • You will get a basic pawn editor shipped with the PAWN toolkit, Quincy. It's located where ever you installed the whole pawn toolkit.
    • DiscordAMX has a "blank.pwn" inside the /Scripts/ folder. Create a copy of the file right inside the scripts folder
    • Rename it to your wishes.
    • Open it in the Quincy editor earlier mentioned, or if you're more advanced in whatever environmet you use.
    • Here's a relatively useably tutorial for pawn for an mod called SA-MP for gta san andreas, using a custom pawncc.exe which is the compiler but it's still the same.
    • If you just want a script so the that program runs, press F5 in quincy. This compiles the script and creates a file named like your file, but as an .amx file. This is runable code. alt_text
    • Now run the bot boy.

⚠️If there isn't DISCORD TOKEN inserted in to discordamx.properties file, the program will close. ⚠️If there is no script loaded, the program will close.

Windows notes

Not much, it's pretty self explaining for everyone who executes the program.

Clone this wiki locally