8000 GitHub - gubaiovo/MCDR_hitokoto: Get message from Hitokoto
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gubaiovo/MCDR_hitokoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCDR Hitokoto

Call the Hitokoto API and automatically output the result to the server.

Configuration File

{
    "interval": "10s",
    "parameters": {},
    "base_url": "https://v1.hitokoto.cn/",
    "from_where": true
}
  • interval : Fetch interval. Supported units: s, m, h. Minimum value is 10s.
  • base_url : API endpoint URL.
  • parameters : API request parameters. Refer to #接口说明(Interface Documentation) .
  • from_where : Whether to display the source of the sentence.

Example Configuration File:

{
    "interval": "1m",
    "parameters": {
        "c": ["a", "c"],
        "max_length": 10
    },
    "base_url": "https://v1.hitokoto.cn/",
    "from_where": true
}

API 调用

The plugin provides a get_hitokoto() function to call the API.

Usage Example:

import hitokoto

message = hitokoto.get_hitokoto()
print(message)

About

Get message from Hitokoto

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0