{"id":16138493,"url":"https://github.com/hashimthearab/wolframgo","last_synced_at":"2025-04-06T17:26:09.697Z","repository":{"id":46631830,"uuid":"325551006","full_name":"HashimTheArab/WolframGo","owner":"HashimTheArab","description":"A simple library to interact with the WolframAlpha API","archived":false,"fork":false,"pushed_at":"2021-10-28T03:29:53.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T23:34:32.111Z","etag":null,"topics":["ai","go","golang","hacktoberfest","wolframalpha"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HashimTheArab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-30T12:56:31.000Z","updated_at":"2023-11-13T20:51:59.000Z","dependencies_parsed_at":"2022-09-02T19:21:36.284Z","dependency_job_id":null,"html_url":"https://github.com/HashimTheArab/WolframGo","commit_stats":null,"previous_names":["prim69/wolframgo"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashimTheArab%2FWolframGo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashimTheArab%2FWolframGo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashimTheArab%2FWolframGo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashimTheArab%2FWolframGo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HashimTheArab","download_url":"https://codeload.github.com/HashimTheArab/WolframGo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247519947,"owners_count":20952083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","go","golang","hacktoberfest","wolframalpha"],"created_at":"2024-10-09T23:34:25.142Z","updated_at":"2025-04-06T17:26:09.654Z","avatar_url":"https://github.com/HashimTheArab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WolframGo\nA simple lib for WolframAlpha made in Go.\ninstall it with go get github.com/Prim69/WolframGo\n\n## Example\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/prim69/wolframgo\"\n)\n\nfunc main() {\n  wolframgo.SetAppId(\"Your App ID\")\n  \n  res, err := wolframgo.GetSimpleResult(\"How many calories are in cereal?\")\n  \n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(res)\n}\n```\n\n## Example with a discord bot\n```go\n\npackage main\n\nimport (\n\t\"github.com/Jviguy/SpeedyCmds/command/ctx\"\n\t\"github.com/bwmarrin/discordgo\"\n        \"github.com/prim69/wolframgo\"\n\t\"strings\"\n        \"fmt\"\n)\n\ntype Ask struct {\n\t\n}\n\nfunc (p Ask) Execute(ctx ctx.Ctx, session *discordgo.Session) error {\n  args := strings.Split(ctx.GetMessage().Content, \" \")\n  \n  if len(args) \u003c 2 {\n    _, _ = session.ChannelMessageSend(ctx.GetChannel().ID, \"Ask me something.\")\n  } else {\n    \n    wolframgo.SetAppId(\"Your App ID\")\n    args := args[1:]\n    question := strings.Join(args, \" \")\n    \n    res, err := wolframgo.GetSimpleResult(\"How many calories are in cereal?\")\n  \n    if err != nil {\n       _, _ := session.ChannelMessageSend(ctx.GetChannel().ID, \"An error occured: \" + err.Error())\n    }\n   \n\t  content := discordgo.MessageSend{\n\t\t\tContent: res,\n\t\t\tAllowedMentions: \u0026discordgo.MessageAllowedMentions{},\n\t\t}\n    \n\t\t_, err = session.ChannelMessageSendComplex(ctx.GetChannel().ID, \u0026content)\n\t return err\n   }\n   return nil\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashimthearab%2Fwolframgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashimthearab%2Fwolframgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashimthearab%2Fwolframgo/lists"}