Skip to content

Automagically set your discord status when you open neovim.

Notifications You must be signed in to change notification settings

osteensco/discordStatus.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discordStatus.nvim

A simple plugin that sets your discord status for you when you open up neovim.

Setup

--Lazy setup
    {
        'osteensco/discordStatus.nvim',
        dependencies = { "osteensco/dotenv.nvim" },
    },

-- Defaults
require('discordStatus').setup({
    discordEnvVariable = "DISCORDTOKEN",
    discordAuthToken = nil,
    openStatus = {
        "Neovim BTW"
    },
    closeStatus = { nil },
})
  • discordEnvVariable: The environment variable name of your discord token. Apart from setting an environment variable normally, you can add a .env file in your neovim config's root directory and discordStatus.nvim will look for it here if not found otherwise.
  • discordAuthToken: Alternatively provide the auth token directly and read it in yourself. Or hardcode it if you're unhinged.
  • openStatus: Table of possible status's to set when neovim is opened. If length > 1 a random status from this table will be chosen.
  • closeStatus: Alternatively change your status when neovim closes. nil value will simply clear out your status. If length > 1 a random status from this table will be chosen.

Discord auth token

An easy way to get an auth token is via browser dev tools. Go to discord.com, login, and navigate to the network tab. For a more detailed explaination, click here.

About

Automagically set your discord status when you open neovim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages