8000 GitHub - Bios-Marcel/discordemojimap: Emoji mapping (:​sunglasses: -> 😎) that matches discords mapping
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bios-Marcel/discordemojimap

Repository files navigation

Discord Emoji Map

Build status GoDoc codecov

This library allows you to substitute Discord emoji codes with their respective emoji.

Note that the tests require golang 1.22, due to the fact that they are parallelised, but don't shadow the loop variables.

Example

package main

import (
    "fmt"
    "github.com/Bios-Marcel/discordemojimap"
)

func main() {
    fmt.Println(discordemojimap.Replace("What a wonderful day :sun_with_face:, am I right?"))
}

Update Mapping

To regenerate mapping.go, run these commands:

wget http://discord.com/assets/5c193e4366261ef233e1.js
go run ./cmd/extractmap -path ./5c193e4366261ef233e1.js -out ./mapping.go

This was last updated on September 10th, 2023.

Note that the name of the asset containing the mapping may change in the future.

About

Emoji mapping (:​sunglasses: -> 😎) that matches discords mapping

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages

0