Skip to content

thunderstorm010/VACEfron.NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VACEfron.NET

🥤 An API wrapper for VAC Efron's web API.

Introduction

Install the NuGet package here.

Below you can find examples using this wrapper combined with Discord.NET in a command context.

You can also visit the wrapper or API documentation (coming soon).

Examples

Creating an image with custom text. Result

// All endpoints can be accessed from the VACEfronEndpoint static class.
var stream = VACEfronEndpoint.ChangeMyMind("My text"); 

await Context.Channel.SendFileAsync(stream, "image.png");

Creating an image with someone's avatar. Result

var stream = VACEfronEndpoint.Stonks(Context.User.GetAvatarUrl()); 

await Context.Channel.SendFileAsync(stream, "image.png");

Creating a rank card image. Result

var rankCard = new RankCard()
{
    Username = "VAC Efron#0001",
    AvatarUrl = Context.User.GetAvatarUrl(),
    Level = 5,
    Rank = 1,
    CurrentXp = 1878,
    PreviousLevelXp = 1500,
    NextLevelXp = 2160,
    CustomBackgroundUrl = null, // Optional custom background
    IsBoosting = false,
    XpColorHex = null // Use default progress bar color (#fcba41)
};

var stream = VACEfronEndpoint.RankCard(rankCard);

await Context.Channel.SendFileAsync(stream, "image.png");

Support

Please join the Discord server for any questions or issues.

About

🥤 An API wrapper for VAC Efron's web API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%