mirror of
https://github.com/miaowware/qrm2.git
synced 2025-09-02 21:27:47 -04:00
parent
56b74108eb
commit
fdfc8cce06
@ -3,8 +3,8 @@ Common tools for the bot.
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
20
exts/ae7q.py
20
exts/ae7q.py
@ -3,17 +3,19 @@ ae7q extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
---
|
|
||||||
Test callsigns:
|
|
||||||
KN8U: active, restricted
|
|
||||||
AB2EE: expired, restricted
|
|
||||||
KE8FGB: assigned once, no restrictions
|
|
||||||
KV4AAA: unassigned, no records
|
|
||||||
KC4USA: reserved, no call history, *but* has application history
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
# Test callsigns:
|
||||||
|
# KN8U: active, restricted
|
||||||
|
# AB2EE: expired, restricted
|
||||||
|
# KE8FGB: assigned once, no restrictions
|
||||||
|
# KV4AAA: unassigned, no records
|
||||||
|
# KC4USA: reserved, no call history, *but* has application history
|
||||||
|
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -3,8 +3,8 @@ Base extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,10 +3,11 @@ Fun extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
|
@ -3,10 +3,11 @@ Grid extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
|
@ -3,10 +3,11 @@ Ham extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
|
@ -3,10 +3,11 @@ Image extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -3,10 +3,11 @@ Lookup extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
|
@ -3,10 +3,11 @@ Morse Code extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
|
|
||||||
import common as cmn
|
import common as cmn
|
||||||
|
@ -3,9 +3,11 @@ QRZ extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
|
@ -3,10 +3,11 @@ Study extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -3,10 +3,11 @@ Weather extension for qrm
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
18
info.py
18
info.py
@ -3,23 +3,11 @@ Static info about the bot.
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
---
|
|
||||||
|
|
||||||
`authors`: The authors of the bot.
|
|
||||||
|
|
||||||
`description`: A description of the bot.
|
|
||||||
|
|
||||||
`license`: The license the bot is released under.
|
|
||||||
|
|
||||||
`contrubuting`: Info on how to contribute to the bot.
|
|
||||||
|
|
||||||
`release`: Current bot version.
|
|
||||||
|
|
||||||
`release_timestamp`: When the bot was last released.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
authors = ("@ClassAbbyAmplifier#2229", "@0x5c#0639")
|
authors = ("@ClassAbbyAmplifier#2229", "@0x5c#0639")
|
||||||
description = """A bot with various useful ham radio-related functions, written in Python."""
|
description = """A bot with various useful ham radio-related functions, written in Python."""
|
||||||
license = "Released under the GNU General Public License v2"
|
license = "Released under the GNU General Public License v2"
|
||||||
|
4
main.py
4
main.py
@ -4,8 +4,8 @@ qrm, a bot for Discord
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,10 +3,11 @@ Information about callsigns for the vanity prefixes command in hamcog.
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrmbot and is released under the terms of the GNU
|
This file is part of discord-qrmbot and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,9 +3,11 @@ A listing of morse code symbols
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrmbot and is released under the terms of the GNU
|
This file is part of discord-qrmbot and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
morse = {
|
morse = {
|
||||||
"A": ".-",
|
"A": ".-",
|
||||||
"B": "-...",
|
"B": "-...",
|
||||||
|
@ -3,10 +3,11 @@ A listing of NATO Phonetics
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrmbot and is released under the terms of the GNU
|
This file is part of discord-qrmbot and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
phonetics = {
|
phonetics = {
|
||||||
"a": "alfa",
|
"a": "alfa",
|
||||||
"b": "bravo",
|
"b": "bravo",
|
||||||
|
@ -3,9 +3,11 @@ A listing of Q Codes
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrmbot and is released under the terms of the GNU
|
This file is part of discord-qrmbot and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
qcodes = {"QAB": "May I have clearance (for ...) from ... (place) to ... (place) at flight level/altitude ... ? / You are cleared (or ... is cleared) by ... from ... (place) to ... (place) at flight level/altitude ...",
|
qcodes = {"QAB": "May I have clearance (for ...) from ... (place) to ... (place) at flight level/altitude ... ? / You are cleared (or ... is cleared) by ... from ... (place) to ... (place) at flight level/altitude ...",
|
||||||
"QAF": "Will you advise me when you are (were) at (over) ... (place)? / I am (was) at (over) ... (place) (at ... hours) at flight level/altitude ...",
|
"QAF": "Will you advise me when you are (were) at (over) ... (place)? / I am (was) at (over) ... (place) (at ... hours) at flight level/altitude ...",
|
||||||
|
@ -3,10 +3,11 @@ A listing of hamstudy command resources
|
|||||||
---
|
---
|
||||||
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
Copyright (C) 2019-2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrmbot and is released under the terms of the GNU
|
This file is part of discord-qrmbot and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
pool_names = {
|
pool_names = {
|
||||||
"us": {
|
"us": {
|
||||||
"technician": "E2",
|
"technician": "E2",
|
||||||
|
@ -3,8 +3,8 @@ Wrapper to handle aiohttp connector creation.
|
|||||||
---
|
---
|
||||||
Copyright (C) 2020 Abigail Gold, 0x5c
|
Copyright (C) 2020 Abigail Gold, 0x5c
|
||||||
|
|
||||||
This file is part of discord-qrm2 and is released under the terms of the GNU
|
This file is part of discord-qrm2 and is released under the terms of
|
||||||
General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user